aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVadim Yanitskiy <vyanitskiy@sysmocom.de>2022-04-21 16:46:03 +0300
committerVadim Yanitskiy <vyanitskiy@sysmocom.de>2022-04-21 16:46:09 +0300
commitb95445159bb3778a16cd028fed25b5d8d18ee8cd (patch)
tree71c4df2bec6163591b0a237c88642b914d6cad3a
parentc30bed235e9fe6339140a374abcb0c292f6a030e (diff)
SimCard.reset(): fix SyntaxWarning: 'is' with a literal
-rw-r--r--pySim/cards.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pySim/cards.py b/pySim/cards.py
index 1ed1634..b186044 100644
--- a/pySim/cards.py
+++ b/pySim/cards.py
@@ -63,7 +63,7 @@ class SimCard(object):
def reset(self):
rc = self._scc.reset_card()
- if rc is 1:
+ if rc == 1:
return self._scc.get_atr()
else:
return None