aboutsummaryrefslogtreecommitdiffstats
path: root/utils.py
diff options
context:
space:
mode:
authorhploetz <hploetz@f711b948-2313-0410-aaa9-d29f33439f0b>2006-05-21 13:04:48 +0000
committerhploetz <hploetz@f711b948-2313-0410-aaa9-d29f33439f0b>2006-05-21 13:04:48 +0000
commit77659befd1e3e9e81eda71878af58167ab2e1138 (patch)
tree18b328f60cf679504c04274cdf15c60dc8d146e9 /utils.py
parent1d3b76657fee7eba81fc756e4e7a856599d58a02 (diff)
generalize file operations, specialise for starcos
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@67 f711b948-2313-0410-aaa9-d29f33439f0b
Diffstat (limited to 'utils.py')
-rw-r--r--utils.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/utils.py b/utils.py
index f5d81d6..09fe00d 100644
--- a/utils.py
+++ b/utils.py
@@ -172,7 +172,8 @@ class APDU(object):
self.parse( initbuff )
for (name, value) in kwargs.items():
- setattr(self, name, value)
+ if value is not None:
+ setattr(self, name, value)
def _getdata(self):
return self._data