[Pcsclite-cvs-commit] r6006 - /trunk/PCSC/src/spy/pcsc-spy.py

rousseau at users.alioth.debian.org rousseau at users.alioth.debian.org
Fri Oct 7 09:10:43 UTC 2011


Author: rousseau
Date: Fri Oct  7 09:10:43 2011
New Revision: 6006

URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=6006
Log:
Use a text instead of numerical constant to specify the direction

Modified:
    trunk/PCSC/src/spy/pcsc-spy.py

Modified: trunk/PCSC/src/spy/pcsc-spy.py
URL: http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/src/spy/pcsc-spy.py?rev=6006&op=diff
==============================================================================
--- trunk/PCSC/src/spy/pcsc-spy.py (original)
+++ trunk/PCSC/src/spy/pcsc-spy.py Fri Oct  7 09:10:43 2011
@@ -313,7 +313,7 @@
         """ log SCARD_READERSTATE structure """
         log = self.log_in2
         raw_log = self.log_in
-        if (direction == 1):
+        if (direction == "out"):
             log = self.log_out2
             raw_log = self.log_out
         for index in range(readers):
@@ -402,8 +402,8 @@
         self.log_in2("dwTimeout:")
         readers = int(self.filedesc.readline().strip(), 16)
         self.log_in("cReaders: %d" % readers)
-        self._log_readers(readers, direction=0)
-        self._log_readers(readers, direction=1)
+        self._log_readers(readers, direction="in")
+        self._log_readers(readers, direction="out")
         self._log_rv()
 
     def _SCardFreeMemory(self):




More information about the Pcsclite-cvs-commit mailing list