[Pcsclite-cvs-commit] r5996 - /trunk/PCSC/src/spy/pcsc-spy.py
rousseau at users.alioth.debian.org
rousseau at users.alioth.debian.org
Tue Oct 4 09:40:14 UTC 2011
Author: rousseau
Date: Tue Oct 4 09:40:13 2011
New Revision: 5996
URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=5996
Log:
Make pep8 happy
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=5996&op=diff
==============================================================================
--- trunk/PCSC/src/spy/pcsc-spy.py (original)
+++ trunk/PCSC/src/spy/pcsc-spy.py Tue Oct 4 09:40:13 2011
@@ -411,15 +411,16 @@
bRecvLength = int(bRecvLength, 16)
# remove the ASCII part at the end
- bRecvBuffer = bRecvBuffer[0:bRecvLength*3-1]
+ bRecvBuffer = bRecvBuffer[0:bRecvLength * 3 - 1]
bRecvBuffer = hex2int(bRecvBuffer, bRecvLength)
# parse GET_FEATURE_REQUEST results
while bRecvBuffer:
tag = bRecvBuffer[0]
length = bRecvBuffer[1]
- value = bRecvBuffer[2:2+length]
- value_int = value[3] + 256 * (value[2] + 256 * (value[1] + 256 *value[0]))
+ value = bRecvBuffer[2:2 + length]
+ value_int = value[3] + 256 * (value[2] + 256
+ * (value[1] + 256 * value[0]))
try:
self.ControlCodes[value_int] = self.features[tag]
self.__dict__[self.features[tag]] = value_int
@@ -427,16 +428,16 @@
self.ControlCodes[value_int] = "UNKNOWN"
print " Tag %s is 0x%X" % (self.ControlCodes[value_int],
- value_int)
-
- bRecvBuffer = bRecvBuffer[2+length:]
+ value_int)
+
+ bRecvBuffer = bRecvBuffer[2 + length:]
elif dwControlCode == self.FEATURE_GET_TLV_PROPERTIES:
print " parsing FEATURE_GET_TLV_PROPERTIES results:"
bRecvLength = int(bRecvLength, 16)
# remove the ASCII part at the end
- bRecvBuffer = bRecvBuffer[0:bRecvLength*3-1]
+ bRecvBuffer = bRecvBuffer[0:bRecvLength * 3 - 1]
bRecvBuffer = hex2int(bRecvBuffer, bRecvLength)
tlv_properties = {
More information about the Pcsclite-cvs-commit
mailing list