Imported minor bugfix from upstream

git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@437 96b47cad-a561-4643-ad3b-153ac7d7599c
This commit is contained in:
oepen
2011-07-26 11:16:59 +00:00
parent 25635cb025
commit 3fe52398ed

View File

@@ -214,7 +214,7 @@ class APDU(object):
elif isinstance(value, str):
setattr(self, "_"+name, ord(value))
else:
raise ValueError, "'%s' attribute can only be a byte, that is: int or str, not %s" % (namelower, type(value))
raise ValueError, "'%s' attribute can only be a byte, that is: int or str, not %s" % (name, type(value))
def _format_parts(self, fields):
"utility function to be used in __str__ and __repr__"