[Pcsclite-cvs-commit] r5192 - /website/matrix.py
rousseau at users.alioth.debian.org
rousseau at users.alioth.debian.org
Thu Aug 26 16:49:44 UTC 2010
Author: rousseau
Date: Thu Aug 26 16:49:40 2010
New Revision: 5192
URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=5192
Log:
check_descriptions(): compare integer values instead of strings to be
case insensitive in the hex notation
Modified:
website/matrix.py
Modified: website/matrix.py
URL: http://svn.debian.org/wsvn/pcsclite/website/matrix.py?rev=5192&op=diff
==============================================================================
--- website/matrix.py (original)
+++ website/matrix.py Thu Aug 26 16:49:40 2010
@@ -177,10 +177,12 @@
continue
(vendor, product, name) = line.split(":")
+ vendor = int(vendor, 16)
+ product = int(product, 16)
found = False
for r in all_readers.keys():
reader = all_readers[r]
- if vendor == reader['idVendor'] and product == reader['idProduct']:
+ if vendor == int(reader['idVendor'], 16) and product == int(reader['idProduct'], 16):
found = True
if not found:
unlisted.append(line)
More information about the Pcsclite-cvs-commit
mailing list