From: <lu...@us...> - 2009-11-22 14:15:22
|
Revision: 330 http://pyscard.svn.sourceforge.net/pyscard/?rev=330&view=rev Author: ludov Date: 2009-11-22 14:15:15 +0000 (Sun, 22 Nov 2009) Log Message: ----------- match_atr(): accept an atr_file argument. Default value is "smartcard_list.txt" Modified Paths: -------------- trunk/contrib/parseATR/parseATR.py Modified: trunk/contrib/parseATR/parseATR.py =================================================================== --- trunk/contrib/parseATR/parseATR.py 2009-11-16 10:51:53 UTC (rev 329) +++ trunk/contrib/parseATR/parseATR.py 2009-11-22 14:15:15 UTC (rev 330) @@ -669,11 +669,11 @@ return "\n".join([colorize(t) for t in text]) -def match_atr(atr): +def match_atr(atr, atr_file = "smartcard_list.txt"): """ try to find card description for a given ATR """ card = [] atr = toHexString(normalize(atr)) - file = open("smartcard_list.txt") + file = open(atr_file) for line in file: if line.startswith("#"): continue This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |