diff options
author | Harald Welte <laforge@osmocom.org> | 2021-05-03 22:58:53 +0200 |
---|---|---|
committer | Harald Welte <laforge@osmocom.org> | 2021-05-04 13:24:07 +0200 |
commit | 903bdaaca8e737a4b3389573f837df6bdf7bf158 (patch) | |
tree | 2b1d7875db3305a1322d3ca5a69c7c8c9ac8a68c | |
parent | daf2b392f04e3b97ce52e52df08bd5a79ac35715 (diff) |
transport: Mark more methods as abstractmethod
Change-Id: Ied3dbd07fdd0d3fa9bbe2dd7dd674700cf13bf63
-rw-r--r-- | pySim/transport/__init__.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pySim/transport/__init__.py b/pySim/transport/__init__.py index 05edc98..5311d8f 100644 --- a/pySim/transport/__init__.py +++ b/pySim/transport/__init__.py @@ -52,6 +52,7 @@ class LinkBase(abc.ABC): """Set an (optional) status word interpreter.""" self.sw_interpreter = interp + @abc.abstractmethod def wait_for_card(self, timeout:int=None, newcardonly:bool=False): """Wait for a card and connect to it @@ -59,22 +60,21 @@ class LinkBase(abc.ABC): timeout : Maximum wait time in seconds (None=no timeout) newcardonly : Should we wait for a new card, or an already inserted one ? """ - pass + @abc.abstractmethod def connect(self): """Connect to a card immediately """ - pass + @abc.abstractmethod def disconnect(self): """Disconnect from card """ - pass + @abc.abstractmethod def reset_card(self): """Resets the card (power down/up) """ - pass def send_apdu_raw(self, pdu:str): """Sends an APDU with minimal processing |