From: <lu...@us...> - 2010-05-18 15:06:22
|
Revision: 414 http://pyscard.svn.sourceforge.net/pyscard/?rev=414&view=rev Author: ludov Date: 2010-05-18 15:06:16 +0000 (Tue, 18 May 2010) Log Message: ----------- getPinProperties() & getTlvProperties(): return a valid dictionnary even if the feature is not supported Modified Paths: -------------- trunk/pyscard/src/smartcard/pcsc/PCSCPart10.py Modified: trunk/pyscard/src/smartcard/pcsc/PCSCPart10.py =================================================================== --- trunk/pyscard/src/smartcard/pcsc/PCSCPart10.py 2010-05-15 15:03:22 UTC (rev 413) +++ trunk/pyscard/src/smartcard/pcsc/PCSCPart10.py 2010-05-18 15:06:16 UTC (rev 414) @@ -146,7 +146,7 @@ controlCode = hasFeature(featureList, FEATURE_IFD_PIN_PROPERTIES) if controlCode is None: - return + return { 'raw': [] } response = cardConnection.control(controlCode, []) d = { @@ -174,7 +174,7 @@ controlCode = hasFeature(featureList, FEATURE_GET_TLV_PROPERTIES) if controlCode is None: - return + return { 'raw': [] } response = cardConnection.control(controlCode, []) d = { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |