From: <lu...@us...> - 2010-05-15 11:53:00
|
Revision: 407 http://pyscard.svn.sourceforge.net/pyscard/?rev=407&view=rev Author: ludov Date: 2010-05-15 11:52:54 +0000 (Sat, 15 May 2010) Log Message: ----------- create a function Modified Paths: -------------- trunk/contrib/parseATR/stress_test.py Modified: trunk/contrib/parseATR/stress_test.py =================================================================== --- trunk/contrib/parseATR/stress_test.py 2010-05-07 16:17:12 UTC (rev 406) +++ trunk/contrib/parseATR/stress_test.py 2010-05-15 11:52:54 UTC (rev 407) @@ -24,11 +24,9 @@ List = "/usr/local/share/pcsc/smartcard_list.txt" -if __name__ == "__main__": - if len(sys.argv) > 1: - List = sys.argv[1] - for atr in open(List): +def stress(atr_list): + for atr in open(atr_list): if not atr.startswith("3"): continue if "[" in atr: @@ -53,3 +51,9 @@ print "Unknown card" print + +if __name__ == "__main__": + if len(sys.argv) > 1: + List = sys.argv[1] + + stress(List) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |