aboutsummaryrefslogtreecommitdiffstats
path: root/cards
diff options
context:
space:
mode:
authorhploetz <hploetz@f711b948-2313-0410-aaa9-d29f33439f0b>2006-05-18 05:00:19 +0000
committerhploetz <hploetz@f711b948-2313-0410-aaa9-d29f33439f0b>2006-05-18 05:00:19 +0000
commit2ec600137657a220e6821581ccda5b39809c1fec (patch)
treedc6dc3b234a6f221b0494bb2d228e7e7a0d4be17 /cards
parent036218d632ec79afd4920af5494271fec7bb7f89 (diff)
experimental next generation code, still broken
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@49 f711b948-2313-0410-aaa9-d29f33439f0b
Diffstat (limited to 'cards')
-rw-r--r--cards/generic_card.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cards/generic_card.py b/cards/generic_card.py
index 0010798..a624adc 100644
--- a/cards/generic_card.py
+++ b/cards/generic_card.py
@@ -143,9 +143,9 @@ class Card:
break
if retval is None:
- return "%s: Unknown SW" % binascii.b2a_hex(self.last_sw)
+ return "Unknown SW (SW %s)" % binascii.b2a_hex(self.last_sw)
else:
- return "%s: %s" % (binascii.b2a_hex(self.last_sw), retval)
+ return "%s (SW %s)" % (retval, binascii.b2a_hex(self.last_sw))
def get_protocol(self):
return ((self.card.status()["Protocol"] == pycsc.SCARD_PROTOCOL_T0) and (0,) or (1,))[0]