From: <lu...@us...> - 2010-05-15 12:56:07
|
Revision: 412 http://pyscard.svn.sourceforge.net/pyscard/?rev=412&view=rev Author: ludov Date: 2010-05-15 12:55:59 +0000 (Sat, 15 May 2010) Log Message: ----------- Revert change from revision 410 now that the card name matching is fast enough Revision Links: -------------- http://pyscard.svn.sourceforge.net/pyscard/?rev=410&view=rev Modified Paths: -------------- trunk/contrib/parseATR/stress_test.py Modified: trunk/contrib/parseATR/stress_test.py =================================================================== --- trunk/contrib/parseATR/stress_test.py 2010-05-15 12:53:38 UTC (rev 411) +++ trunk/contrib/parseATR/stress_test.py 2010-05-15 12:55:59 UTC (rev 412) @@ -22,7 +22,6 @@ import parseATR List = "/usr/local/share/pcsc/smartcard_list.txt" -Match = 0 def stress(atr_list): @@ -45,12 +44,11 @@ print e else: print txt - if Match: - card = parseATR.match_atr(atr) - if card: - print "Possibly identified card:", "\n\t".join(card) - else: - print "Unknown card" + card = parseATR.match_atr(atr) + if card: + print "Possibly identified card:", "\n\t".join(card) + else: + print "Unknown card" print This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |