forked from public/pysim
pylint: apdu_source/__init__.py
pySim/apdu_source/__init__.py:1:0: C0114: Missing module docstring (missing-module-docstring) pySim/apdu_source/__init__.py:17:8: W0107: Unnecessary pass statement (unnecessary-pass) pySim/apdu_source/__init__.py:34:16: W0133: Exception statement has no effect (pointless-exception-statement) Change-Id: Iec552afd6004b849132132642910a4c7f91e3473
This commit is contained in:
@@ -14,7 +14,6 @@ class ApduSource(abc.ABC):
|
|||||||
@abc.abstractmethod
|
@abc.abstractmethod
|
||||||
def read_packet(self) -> PacketType:
|
def read_packet(self) -> PacketType:
|
||||||
"""Read one packet from the source."""
|
"""Read one packet from the source."""
|
||||||
pass
|
|
||||||
|
|
||||||
def read(self) -> Union[Apdu, CardReset]:
|
def read(self) -> Union[Apdu, CardReset]:
|
||||||
"""Main function to call by the user: Blocking read, returns Apdu or CardReset."""
|
"""Main function to call by the user: Blocking read, returns Apdu or CardReset."""
|
||||||
@@ -31,5 +30,5 @@ class ApduSource(abc.ABC):
|
|||||||
elif isinstance(r, CardReset):
|
elif isinstance(r, CardReset):
|
||||||
apdu = r
|
apdu = r
|
||||||
else:
|
else:
|
||||||
ValueError('Unknown read_packet() return %s' % r)
|
raise ValueError('Unknown read_packet() return %s' % r)
|
||||||
return apdu
|
return apdu
|
||||||
|
|||||||
Reference in New Issue
Block a user