|
From: <lu...@us...> - 2012-09-28 09:23:59
|
Revision: 599
http://pyscard.svn.sourceforge.net/pyscard/?rev=599&view=rev
Author: ludov
Date: 2012-09-28 09:23:49 +0000 (Fri, 28 Sep 2012)
Log Message:
-----------
Use toASCIIString() to factorize code
Modified Paths:
--------------
trunk/contrib/parseATR/parseATR.py
Modified: trunk/contrib/parseATR/parseATR.py
===================================================================
--- trunk/contrib/parseATR/parseATR.py 2012-09-28 09:20:26 UTC (rev 598)
+++ trunk/contrib/parseATR/parseATR.py 2012-09-28 09:23:49 UTC (rev 599)
@@ -654,13 +654,9 @@
else:
text.append(" (proprietary format)")
ascii = " equivalent ASCII string: \""
- for b in historical_bytes:
- if b > 31 and b < 127:
- ascii += chr(b)
- else:
- ascii += '.'
+ ascii += toASCIIString(historical_bytes)
ascii += '"'
- text.append(''.join(ascii))
+ text.append(ascii)
return text
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|