[Pcsclite-git-commit] [pcsc-tools] 01/02: sort_smartcard_list.py: check the ATR is all upper case
Ludovic Rousseau
rousseau at moszumanska.debian.org
Fri Aug 7 16:12:59 UTC 2015
This is an automated email from the git hooks/post-receive script.
rousseau pushed a commit to branch master
in repository pcsc-tools.
commit 974d4be1fb8771fb77427985a8f687fa162d2b03
Author: Ludovic Rousseau <ludovic.rousseau at free.fr>
Date: Fri Aug 7 17:38:15 2015 +0200
sort_smartcard_list.py: check the ATR is all upper case
If an ATR contains lower case letters then an error is reported.
---
sort_smartcard_list.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/sort_smartcard_list.py b/sort_smartcard_list.py
index e17b77c..1f056d7 100755
--- a/sort_smartcard_list.py
+++ b/sort_smartcard_list.py
@@ -15,6 +15,10 @@ for l in file("smartcard_list.txt").readlines():
if l.startswith("#") or l.startswith("\t"):
continue
+ # check the ATR is all upper case
+ if l.upper() != l:
+ print "error:", l
+
ATRs.append(l.strip())
# if l.startswith("\t"):
# ATRs.append([atr, l.strip()])
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pcsclite/pcsc-tools.git
More information about the Pcsclite-cvs-commit
mailing list