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

rousseau at users.alioth.debian.org rousseau at users.alioth.debian.org
Thu Sep 29 13:06:06 UTC 2011


Author: rousseau
Date: Thu Sep 29 13:06:06 2011
New Revision: 5986

URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=5986
Log:
Fix some pylint warnings

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=5986&op=diff
==============================================================================
--- trunk/PCSC/src/spy/pcsc-spy.py (original)
+++ trunk/PCSC/src/spy/pcsc-spy.py Thu Sep 29 13:06:06 2011
@@ -227,6 +227,7 @@
         self.log_out("hContext: %s" % hContext)
 
     def _get_state(self, dwState):
+        """ parse dwCurrentState and dwEventState """
         SCardStates = {0: 'SCARD_STATE_UNAWARE',
             1: 'SCARD_STATE_IGNORE',
             2: 'SCARD_STATE_CHANGED',
@@ -288,6 +289,7 @@
         print PCSCspy.color_blue + name + PCSCspy.color_normal
 
     def _log_readers(self, readers, direction):
+        """ log SCARD_READERSTATE structure """
         log = self.log_in2
         raw_log = self.log_in
         if (direction == 1):
@@ -465,6 +467,8 @@
             os.mkfifo(self.fifo)
         except (OSError):
             print "fifo %s already present. Reusing it." % self.fifo
+
+        self.sec = self.usec = 0
 
         self.filedesc = open(self.fifo, 'r')
         #import sys




More information about the Pcsclite-cvs-commit mailing list