aboutsummaryrefslogtreecommitdiffstats
path: root/utils.py
diff options
context:
space:
mode:
authorhenryk <henryk@f711b948-2313-0410-aaa9-d29f33439f0b>2006-05-04 23:58:28 +0000
committerhenryk <henryk@f711b948-2313-0410-aaa9-d29f33439f0b>2006-05-04 23:58:28 +0000
commitdf4e90ea9e1d123453ebe4a302b2313c0f330a3c (patch)
treeb9ab063161b5908d6af3195ca5029a4e135e2159 /utils.py
parent31225977e2479e061dd92635df98c353aaeb78f6 (diff)
Implemented option to select reader
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@44 f711b948-2313-0410-aaa9-d29f33439f0b
Diffstat (limited to 'utils.py')
-rw-r--r--utils.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/utils.py b/utils.py
index d038488..2f6471a 100644
--- a/utils.py
+++ b/utils.py
@@ -164,7 +164,8 @@ class APDU:
else:
raise ValueError, "Invalid APDU, impossible"
- for (kw, arg) in kwargs.items():
+ for (kw_orig, arg) in kwargs.items():
+ kw = kw_orig.lower()
if kw == "cla":
self.cla = arg
elif kw == "ins":
@@ -181,7 +182,7 @@ class APDU:
elif kw == "content":
self.content = arg
else:
- raise TypeError, "Got an unexpected keyword argument '%s'" % kw
+ raise TypeError, "Got an unexpected keyword argument '%s'" % kw_orig
if not lc_was_set:
self.lc = len(self.content)