|
From: <lu...@us...> - 2009-11-22 16:47:10
|
Revision: 356
http://pyscard.svn.sourceforge.net/pyscard/?rev=356&view=rev
Author: ludov
Date: 2009-11-22 16:47:03 +0000 (Sun, 22 Nov 2009)
Log Message:
-----------
pep8: E221 multiple spaces before operator
Modified Paths:
--------------
trunk/pyscard/src/smartcard/CardConnection.py
trunk/pyscard/src/smartcard/pcsc/PCSCPart10.py
trunk/pyscard/src/smartcard/test/scard/testcase_listcards.py
trunk/pyscard/src/smartcard/wx/APDUTracerPanel.py
Modified: trunk/pyscard/src/smartcard/CardConnection.py
===================================================================
--- trunk/pyscard/src/smartcard/CardConnection.py 2009-11-22 16:44:13 UTC (rev 355)
+++ trunk/pyscard/src/smartcard/CardConnection.py 2009-11-22 16:47:03 UTC (rev 356)
@@ -32,10 +32,10 @@
Known subclasses: smartcard.pcsc.PCSCCardConnection
"""
- T0_protocol = 0x00000001
- T1_protocol = 0x00000002
- RAW_protocol = 0x00010000
- T15_protocol = 0x00000008
+ T0_protocol = 0x00000001
+ T1_protocol = 0x00000002
+ RAW_protocol = 0x00010000
+ T15_protocol = 0x00000008
def __init__( self, reader ):
Modified: trunk/pyscard/src/smartcard/pcsc/PCSCPart10.py
===================================================================
--- trunk/pyscard/src/smartcard/pcsc/PCSCPart10.py 2009-11-22 16:44:13 UTC (rev 355)
+++ trunk/pyscard/src/smartcard/pcsc/PCSCPart10.py 2009-11-22 16:47:03 UTC (rev 356)
@@ -25,25 +25,25 @@
from smartcard.scard import *
# constants defined in PC/SC v2 Part 10
-CM_IOCTL_GET_FEATURE_REQUEST = SCARD_CTL_CODE(3400)
+CM_IOCTL_GET_FEATURE_REQUEST = SCARD_CTL_CODE(3400)
-FEATURE_VERIFY_PIN_START = 0x01
-FEATURE_VERIFY_PIN_FINISH = 0x02
-FEATURE_MODIFY_PIN_START = 0x03
-FEATURE_MODIFY_PIN_FINISH = 0x04
-FEATURE_GET_KEY_PRESSED = 0x05
-FEATURE_VERIFY_PIN_DIRECT = 0x06
-FEATURE_MODIFY_PIN_DIRECT = 0x07
-FEATURE_MCT_READERDIRECT = 0x08
-FEATURE_MCT_UNIVERSAL = 0x09
-FEATURE_IFD_PIN_PROPERTIES = 0x0A
-FEATURE_ABORT = 0x0B
-FEATURE_SET_SPE_MESSAGE = 0x0C
+FEATURE_VERIFY_PIN_START = 0x01
+FEATURE_VERIFY_PIN_FINISH = 0x02
+FEATURE_MODIFY_PIN_START = 0x03
+FEATURE_MODIFY_PIN_FINISH = 0x04
+FEATURE_GET_KEY_PRESSED = 0x05
+FEATURE_VERIFY_PIN_DIRECT = 0x06
+FEATURE_MODIFY_PIN_DIRECT = 0x07
+FEATURE_MCT_READERDIRECT = 0x08
+FEATURE_MCT_UNIVERSAL = 0x09
+FEATURE_IFD_PIN_PROPERTIES = 0x0A
+FEATURE_ABORT = 0x0B
+FEATURE_SET_SPE_MESSAGE = 0x0C
FEATURE_VERIFY_PIN_DIRECT_APP_ID = 0x0D
FEATURE_MODIFY_PIN_DIRECT_APP_ID = 0x0E
-FEATURE_WRITE_DISPLAY = 0x0F
-FEATURE_GET_KEY = 0x10
-FEATURE_IFD_DISPLAY_PROPERTIES = 0x11
+FEATURE_WRITE_DISPLAY = 0x0F
+FEATURE_GET_KEY = 0x10
+FEATURE_IFD_DISPLAY_PROPERTIES = 0x11
Features = {
"FEATURE_VERIFY_PIN_START" : FEATURE_VERIFY_PIN_START,
Modified: trunk/pyscard/src/smartcard/test/scard/testcase_listcards.py
===================================================================
--- trunk/pyscard/src/smartcard/test/scard/testcase_listcards.py 2009-11-22 16:44:13 UTC (rev 355)
+++ trunk/pyscard/src/smartcard/test/scard/testcase_listcards.py 2009-11-22 16:47:03 UTC (rev 356)
@@ -41,7 +41,7 @@
hresult, self.hcontext = SCardEstablishContext( SCARD_SCOPE_USER )
self.assertEquals(hresult, 0)
self.dummycardname = 'dummycard'
- self.dummycardATR = [ 0x3B, 0x75, 0x94, 0x00, 0x00, 0x62, 0x02, 0x02, 0x01, 0x01 ]
+ self.dummycardATR = [ 0x3B, 0x75, 0x94, 0x00, 0x00, 0x62, 0x02, 0x02, 0x01, 0x01 ]
self.dummycardMask = [ 0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF ]
self.dummycardguid1 = smartcard.guid.strToGUID('{AD4F1667-EA75-4124-84D4-641B3B197C65}')
self.dummycardguid2 = smartcard.guid.strToGUID('{382AE95A-7C2C-449c-A179-56C6DE6FF3BC}')
Modified: trunk/pyscard/src/smartcard/wx/APDUTracerPanel.py
===================================================================
--- trunk/pyscard/src/smartcard/wx/APDUTracerPanel.py 2009-11-22 16:44:13 UTC (rev 355)
+++ trunk/pyscard/src/smartcard/wx/APDUTracerPanel.py 2009-11-22 16:47:03 UTC (rev 356)
@@ -54,7 +54,7 @@
def update( self, cardconnection, ccevent ):
'''CardConnectionObserver callback.'''
- apduline = ""
+ apduline = ""
if 'connect'==ccevent.type:
apduline += 'connecting to ' + cardconnection.getReader()
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|