aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@osmocom.org>2024-02-04 22:32:09 +0100
committerHarald Welte <laforge@osmocom.org>2024-02-05 09:52:17 +0100
commitc4d80870e88605eaf754802815859f3ad1b5a02c (patch)
treed5fb9cadaa5b870d159393b9cdb5e60f2576c0b7
parentf5a8e70f44acafc0d46fe573d5780471e04363d8 (diff)
pylint: transport/calypso.py
pySim/transport/calypso.py:27:0: W0401: Wildcard import pySim.exceptions (wildcard-import) pySim/transport/calypso.py:61:23: W0622: Redefining built-in 'type' (redefined-builtin) pySim/transport/calypso.py:62:8: R1725: Consider using Python 3 style super() without arguments (super-with-arguments) pySim/transport/calypso.py:73:8: R1725: Consider using Python 3 style super() without arguments (super-with-arguments) pySim/transport/calypso.py:27:0: W0614: Unused import(s) NoCardError and SwMatchError from wildcard import of pySim.exceptions (unused-wildcard-import) Change-Id: I6b10d5f3370c00b07288300b537c6f0e17c84a87
-rw-r--r--pySim/transport/calypso.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/pySim/transport/calypso.py b/pySim/transport/calypso.py
index 7544d2e..6252137 100644
--- a/pySim/transport/calypso.py
+++ b/pySim/transport/calypso.py
@@ -24,7 +24,7 @@ import argparse
from typing import Optional
from pySim.transport import LinkBase
-from pySim.exceptions import *
+from pySim.exceptions import ReaderError, ProtocolError
from pySim.utils import h2b, b2h, Hexstr, ResTuple
@@ -58,9 +58,9 @@ class L1CTLMessageReset(L1CTLMessage):
L1CTL_RES_T_FULL = 0x01
L1CTL_RES_T_SCHED = 0x02
- def __init__(self, type=L1CTL_RES_T_FULL):
- super(L1CTLMessageReset, self).__init__(self.L1CTL_RESET_REQ)
- self.data += struct.pack("Bxxx", type)
+ def __init__(self, ttype=L1CTL_RES_T_FULL):
+ super().__init__(self.L1CTL_RESET_REQ)
+ self.data += struct.pack("Bxxx", ttype)
class L1CTLMessageSIM(L1CTLMessage):
@@ -70,7 +70,7 @@ class L1CTLMessageSIM(L1CTLMessage):
L1CTL_SIM_CONF = 0x17
def __init__(self, pdu):
- super(L1CTLMessageSIM, self).__init__(self.L1CTL_SIM_REQ)
+ super().__init__(self.L1CTL_SIM_REQ)
self.data += pdu