From ee7aff52931005fb35f00af043aae62467e78f7b Mon Sep 17 00:00:00 2001 From: oepen Date: Wed, 17 Aug 2011 14:18:55 +0000 Subject: [PATCH] -Bugfix: Selection from current DF -Replaced print by logging git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@495 96b47cad-a561-4643-ad3b-153ac7d7599c --- .../src/vpicc/virtualsmartcard/SmartcardFilesystem.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/virtualsmartcard/src/vpicc/virtualsmartcard/SmartcardFilesystem.py b/virtualsmartcard/src/vpicc/virtualsmartcard/SmartcardFilesystem.py index 0b57731..0ef7a15 100644 --- a/virtualsmartcard/src/vpicc/virtualsmartcard/SmartcardFilesystem.py +++ b/virtualsmartcard/src/vpicc/virtualsmartcard/SmartcardFilesystem.py @@ -655,7 +655,7 @@ class MF(DF): # {{{ else: selected = walk(self.currentDF(), data) elif p1 == P1_CHILD_DF or p1 == P1_CHILD_EF: - selected = self.select('fid', stringtoint(data)) + selected = self.currentDF().select('fid', stringtoint(data)) if ((p1 == P1_CHILD_DF and not isinstance(selected, DF)) or (p1 == P1_CHILD_EF and not isinstance(selected, EF))): # Command incompatible with file structure @@ -1670,7 +1670,7 @@ class CryptoflexMF(MF): # {{{ raise SwError(SW["ERR_INCORRECTPARAMETERS"]) file = DF(**args) else: - print "unknown type: 0x%x" % ord(data[6]) + logging.error("unknown type: 0x%x" % ord(data[6])) raise SwError(SW["ERR_INCORRECTPARAMETERS"])