|
From: <lu...@us...> - 2009-11-22 16:44:23
|
Revision: 355
http://pyscard.svn.sourceforge.net/pyscard/?rev=355&view=rev
Author: ludov
Date: 2009-11-22 16:44:13 +0000 (Sun, 22 Nov 2009)
Log Message:
-----------
pep8: E251 no spaces around keyword / parameter equals
Modified Paths:
--------------
trunk/pyscard/src/smartcard/CardConnection.py
trunk/pyscard/src/smartcard/Examples/wx/apdumanager/SampleAPDUManagerPanel.py
trunk/pyscard/src/smartcard/Examples/wx/apdumanager/apdumanager.py
trunk/pyscard/src/smartcard/Examples/wx/cardmonitor/cardmonitor.py
trunk/pyscard/src/smartcard/Examples/wx/readerviewer/readerviewer.py
trunk/pyscard/src/smartcard/Observer.py
trunk/pyscard/src/smartcard/pcsc/PCSCPart10.py
trunk/pyscard/src/smartcard/wx/CardAndReaderTreePanel.py
trunk/pyscard/src/smartcard/wx/ReaderToolbar.py
trunk/pyscard/src/smartcard/wx/SimpleSCardApp.py
Modified: trunk/pyscard/src/smartcard/CardConnection.py
===================================================================
--- trunk/pyscard/src/smartcard/CardConnection.py 2009-11-22 16:38:51 UTC (rev 354)
+++ trunk/pyscard/src/smartcard/CardConnection.py 2009-11-22 16:44:13 UTC (rev 355)
@@ -141,7 +141,7 @@
Subclasses must override this method for implementing apdu transmission."""
pass
- def control( self, controlCode, bytes = [] ):
+ def control( self, controlCode, bytes=[] ):
"""Send a control command and buffer. Internally calls doControl()
class method and notify observers upon command/response events.
Subclasses must override the doControl() class method.
Modified: trunk/pyscard/src/smartcard/Examples/wx/apdumanager/SampleAPDUManagerPanel.py
===================================================================
--- trunk/pyscard/src/smartcard/Examples/wx/apdumanager/SampleAPDUManagerPanel.py 2009-11-22 16:38:51 UTC (rev 354)
+++ trunk/pyscard/src/smartcard/Examples/wx/apdumanager/SampleAPDUManagerPanel.py 2009-11-22 16:44:13 UTC (rev 355)
@@ -110,7 +110,7 @@
statictextCommand = wx.StaticText( self, ID_TEXT_COMMAND, "Command", wx.DefaultPosition, wx.DefaultSize, 0 )
self.commandtextctrl = wx.TextCtrl( self, ID_TEXTCTRL_COMMAND, "",
wx.DefaultPosition, wx.DefaultSize, wx.TE_MULTILINE,
- validator = APDUHexValidator() )
+ validator=APDUHexValidator() )
statictextResponse = wx.StaticText( self, ID_TEXT_RESPONSE, "Response", wx.DefaultPosition, wx.DefaultSize, 0 )
self.responsetextctrl = wx.TextCtrl( self, ID_TEXTCTRL_RESPONSE, "", wx.DefaultPosition, wx.DefaultSize, wx.TE_MULTILINE | wx.TE_READONLY )
statictextStatusWords = wx.StaticText( self, ID_TEXT_SW, "Status Words", wx.DefaultPosition, wx.DefaultSize, 0 )
Modified: trunk/pyscard/src/smartcard/Examples/wx/apdumanager/apdumanager.py
===================================================================
--- trunk/pyscard/src/smartcard/Examples/wx/apdumanager/apdumanager.py 2009-11-22 16:38:51 UTC (rev 354)
+++ trunk/pyscard/src/smartcard/Examples/wx/apdumanager/apdumanager.py 2009-11-22 16:44:13 UTC (rev 355)
@@ -31,11 +31,11 @@
def main( argv ):
app = SimpleSCardApp(
- appname = 'A tool to send apdu to a card',
- apppanel = SampleAPDUManagerPanel,
- appstyle = TR_SMARTCARD | TR_READER | PANEL_APDUTRACER,
- appicon = os.path.join( os.path.dirname( __file__ ), 'images', 'mysmartcard.ico' ),
- size = (800,600) )
+ appname='A tool to send apdu to a card',
+ apppanel=SampleAPDUManagerPanel,
+ appstyle=TR_SMARTCARD | TR_READER | PANEL_APDUTRACER,
+ appicon=os.path.join( os.path.dirname( __file__ ), 'images', 'mysmartcard.ico' ),
+ size=(800,600) )
app.MainLoop()
if __name__ == "__main__":
Modified: trunk/pyscard/src/smartcard/Examples/wx/cardmonitor/cardmonitor.py
===================================================================
--- trunk/pyscard/src/smartcard/Examples/wx/cardmonitor/cardmonitor.py 2009-11-22 16:38:51 UTC (rev 354)
+++ trunk/pyscard/src/smartcard/Examples/wx/cardmonitor/cardmonitor.py 2009-11-22 16:44:13 UTC (rev 355)
@@ -87,11 +87,11 @@
def main( argv ):
app = SimpleSCardApp(
- appname = 'A simple card monitoring tool',
- apppanel = SamplePanel,
- appstyle = TR_SMARTCARD | TR_READER,
- appicon = os.path.join( os.path.dirname( __file__ ), 'images', 'mysmartcard.ico' ),
- size = (800,600) )
+ appname='A simple card monitoring tool',
+ apppanel=SamplePanel,
+ appstyle=TR_SMARTCARD | TR_READER,
+ appicon=os.path.join( os.path.dirname( __file__ ), 'images', 'mysmartcard.ico' ),
+ size=(800,600) )
app.MainLoop()
if __name__ == "__main__":
Modified: trunk/pyscard/src/smartcard/Examples/wx/readerviewer/readerviewer.py
===================================================================
--- trunk/pyscard/src/smartcard/Examples/wx/readerviewer/readerviewer.py 2009-11-22 16:38:51 UTC (rev 354)
+++ trunk/pyscard/src/smartcard/Examples/wx/readerviewer/readerviewer.py 2009-11-22 16:44:13 UTC (rev 355)
@@ -28,11 +28,11 @@
def main( argv ):
app = SimpleSCardApp(
- appname = 'A simple reader monitoring tool',
- apppanel = None,
- appstyle = TR_READER,
- appicon = os.path.join( os.path.dirname( __file__ ), 'images', 'readerviewer.ico' ),
- size = (800,600) )
+ appname='A simple reader monitoring tool',
+ apppanel=None,
+ appstyle=TR_READER,
+ appicon=os.path.join( os.path.dirname( __file__ ), 'images', 'readerviewer.ico' ),
+ size=(800,600) )
app.MainLoop()
if __name__ == "__main__":
Modified: trunk/pyscard/src/smartcard/Observer.py
===================================================================
--- trunk/pyscard/src/smartcard/Observer.py 2009-11-22 16:38:51 UTC (rev 354)
+++ trunk/pyscard/src/smartcard/Observer.py 2009-11-22 16:44:13 UTC (rev 355)
@@ -35,7 +35,7 @@
def deleteObserver(self, observer):
self.obs.remove(observer)
- def notifyObservers(self, arg = None):
+ def notifyObservers(self, arg=None):
'''If 'changed' indicates that this object
has changed, notify all its observers, then
call clearChanged(). Each observer has its
Modified: trunk/pyscard/src/smartcard/pcsc/PCSCPart10.py
===================================================================
--- trunk/pyscard/src/smartcard/pcsc/PCSCPart10.py 2009-11-22 16:38:51 UTC (rev 354)
+++ trunk/pyscard/src/smartcard/pcsc/PCSCPart10.py 2009-11-22 16:44:13 UTC (rev 355)
@@ -98,7 +98,7 @@
if f[0] == feature or Features[f[0]] == feature:
return f[1]
-def getPinProperties(cardConnection, featureList = None, controlCode = None):
+def getPinProperties(cardConnection, featureList=None, controlCode=None):
""" return the PIN_PROPERTIES structure
cardConnection: CardConnection object
Modified: trunk/pyscard/src/smartcard/wx/CardAndReaderTreePanel.py
===================================================================
--- trunk/pyscard/src/smartcard/wx/CardAndReaderTreePanel.py 2009-11-22 16:38:51 UTC (rev 354)
+++ trunk/pyscard/src/smartcard/wx/CardAndReaderTreePanel.py 2009-11-22 16:44:13 UTC (rev 355)
@@ -42,7 +42,7 @@
ID=wx.NewId(),
pos=wx.DefaultPosition,
size=wx.DefaultSize,
- style= 0,
+ style=0,
clientpanel=None ):
"""Constructor. Initializes a smartcard or reader tree control."""
wx.TreeCtrl.__init__( self, parent, ID, pos, size , wx.TR_SINGLE | wx.TR_NO_BUTTONS )
@@ -75,7 +75,7 @@
ID=wx.NewId(),
pos=wx.DefaultPosition,
size=wx.DefaultSize,
- style= 0,
+ style=0,
clientpanel=None ):
"""Constructor. Create a smartcard tree control."""
BaseCardTreeCtrl.__init__( self, parent, ID, pos, size ,
@@ -125,7 +125,7 @@
ID=wx.NewId(),
pos=wx.DefaultPosition,
size=wx.DefaultSize,
- style= 0,
+ style=0,
clientpanel=None ):
"""Constructor. Create a reader tree control."""
Modified: trunk/pyscard/src/smartcard/wx/ReaderToolbar.py
===================================================================
--- trunk/pyscard/src/smartcard/wx/ReaderToolbar.py 2009-11-22 16:38:51 UTC (rev 354)
+++ trunk/pyscard/src/smartcard/wx/ReaderToolbar.py 2009-11-22 16:44:13 UTC (rev 355)
@@ -32,7 +32,7 @@
"""Constructor. Registers as ReaderObserver to get
notifications of reader insertion/removal."""
wx.ComboBox.__init__( self, parent, wx.NewId(),
- size=(170,-1), style = wx.CB_DROPDOWN | wx.CB_SORT ,
+ size=(170,-1), style=wx.CB_DROPDOWN | wx.CB_SORT ,
choices=[] )
# register as a ReaderObserver; we will ge notified of added/removed readers
@@ -63,7 +63,7 @@
parent,
pos=wx.DefaultPosition,
size=wx.DefaultSize,
- style = wx.SIMPLE_BORDER | wx.TB_HORIZONTAL | wx.TB_FLAT | wx.TB_TEXT,
+ style=wx.SIMPLE_BORDER | wx.TB_HORIZONTAL | wx.TB_FLAT | wx.TB_TEXT,
name='Reader Toolbar' )
# create bitmaps for toolbar
Modified: trunk/pyscard/src/smartcard/wx/SimpleSCardApp.py
===================================================================
--- trunk/pyscard/src/smartcard/wx/SimpleSCardApp.py 2009-11-22 16:38:51 UTC (rev 354)
+++ trunk/pyscard/src/smartcard/wx/SimpleSCardApp.py 2009-11-22 16:44:13 UTC (rev 355)
@@ -38,12 +38,12 @@
SimpleSCardApp is a subclass of wx.App.
"""
def __init__( self,
- appname = '',
- apppanel = None,
- appstyle = TR_DEFAULT,
- appicon = None,
- pos = (-1,-1),
- size = (-1,-1) ):
+ appname='',
+ apppanel=None,
+ appstyle=TR_DEFAULT,
+ appicon=None,
+ pos=(-1,-1),
+ size=(-1,-1) ):
"""Constructor for simple smart card application.
appname: the application name
apppanel: the application panel to display in the application frame
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|