From: <lu...@us...> - 2010-03-17 19:32:23
|
Revision: 385 http://pyscard.svn.sourceforge.net/pyscard/?rev=385&view=rev Author: ludov Date: 2010-03-17 19:32:16 +0000 (Wed, 17 Mar 2010) Log Message: ----------- Do not ignore '.' in ATR and replace it by '0' Modified Paths: -------------- trunk/contrib/parseATR/stress_test.py Modified: trunk/contrib/parseATR/stress_test.py =================================================================== --- trunk/contrib/parseATR/stress_test.py 2010-03-17 17:29:34 UTC (rev 384) +++ trunk/contrib/parseATR/stress_test.py 2010-03-17 19:32:16 UTC (rev 385) @@ -1,7 +1,7 @@ #! /usr/bin/env python """ stress_test.py - Copyright (C) 2009 Ludovic Rousseau + Copyright (C) 2009-2010 Ludovic Rousseau This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -29,15 +29,13 @@ List = sys.argv[1] for atr in open(List): - if atr[0] != "3": + if not atr.startswith("3"): continue if "[" in atr: continue - if "." in atr: - continue - if "?" in atr: - continue + atr = atr.replace('.', '0') + # remove traling newline atr = atr.rstrip() print "ATR:", atr This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |