|
From: <jda...@us...> - 2011-10-16 10:51:48
|
Revision: 554
http://pyscard.svn.sourceforge.net/pyscard/?rev=554&view=rev
Author: jdaussel
Date: 2011-10-16 10:51:41 +0000 (Sun, 16 Oct 2011)
Log Message:
-----------
Fixed blank lines issues for pep8
Modified Paths:
--------------
trunk/pyscard/src/smartcard/Examples/scard-api/sample_listInterfaces.py
trunk/pyscard/src/smartcard/Examples/scard-api/sample_locateCards.py
trunk/pyscard/src/smartcard/Examples/scard-api/sample_readerGroups.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/apdumanager/setup.py
trunk/pyscard/src/smartcard/Examples/wx/cardmonitor/cardmonitor.py
trunk/pyscard/src/smartcard/Examples/wx/cardmonitor/setup.py
trunk/pyscard/src/smartcard/Examples/wx/pcscdiag/pcscdiag.py
trunk/pyscard/src/smartcard/Examples/wx/readerviewer/readerviewer.py
trunk/pyscard/src/smartcard/Examples/wx/readerviewer/setup.py
trunk/pyscard/src/smartcard/pyro/__init__.py
trunk/pyscard/src/smartcard/pyro/server/__init__.py
trunk/pyscard/src/smartcard/test/framework/testcase_ErrorChecking.py
trunk/pyscard/src/smartcard/wx/SimpleSCardAppFrame.py
Modified: trunk/pyscard/src/smartcard/Examples/scard-api/sample_listInterfaces.py
===================================================================
--- trunk/pyscard/src/smartcard/Examples/scard-api/sample_listInterfaces.py 2011-10-16 10:40:43 UTC (rev 553)
+++ trunk/pyscard/src/smartcard/Examples/scard-api/sample_listInterfaces.py 2011-10-16 10:51:41 UTC (rev 554)
@@ -59,7 +59,6 @@
if hresult != SCARD_S_SUCCESS:
raise error, 'Failed to introduce card type: ' + SCardGetErrorMessage(hresult)
-
# list card interfaces
hresult, interfaces = SCardListInterfaces(hcontext, znewcardName)
if hresult != SCARD_S_SUCCESS:
Modified: trunk/pyscard/src/smartcard/Examples/scard-api/sample_locateCards.py
===================================================================
--- trunk/pyscard/src/smartcard/Examples/scard-api/sample_locateCards.py 2011-10-16 10:40:43 UTC (rev 553)
+++ trunk/pyscard/src/smartcard/Examples/scard-api/sample_locateCards.py 2011-10-16 10:51:41 UTC (rev 554)
@@ -62,7 +62,6 @@
raise error, 'Failure to list cards'
print 'Cards:', cards
-
readerstates = []
for i in xrange(len(readers)):
readerstates += [(readers[i], SCARD_STATE_UNAWARE)]
Modified: trunk/pyscard/src/smartcard/Examples/scard-api/sample_readerGroups.py
===================================================================
--- trunk/pyscard/src/smartcard/Examples/scard-api/sample_readerGroups.py 2011-10-16 10:40:43 UTC (rev 553)
+++ trunk/pyscard/src/smartcard/Examples/scard-api/sample_readerGroups.py 2011-10-16 10:51:41 UTC (rev 554)
@@ -105,7 +105,6 @@
raise error, 'Failed to list readers in groups ' + repr(readerGroups) + ' : ' + SCardGetErrorMessage(hresult)
print 'PCSC Readers in reader group', readerGroups, ':', readers
-
finally:
hresult = SCardReleaseContext(hcontext)
if hresult != SCARD_S_SUCCESS:
Modified: trunk/pyscard/src/smartcard/Examples/wx/apdumanager/SampleAPDUManagerPanel.py
===================================================================
--- trunk/pyscard/src/smartcard/Examples/wx/apdumanager/SampleAPDUManagerPanel.py 2011-10-16 10:40:43 UTC (rev 553)
+++ trunk/pyscard/src/smartcard/Examples/wx/apdumanager/SampleAPDUManagerPanel.py 2011-10-16 10:51:41 UTC (rev 554)
@@ -153,7 +153,6 @@
boxsizerEvents = wx.StaticBoxSizer(staticboxEvents, wx.HORIZONTAL)
boxsizerEvents.Add(self.feedbacktext, 0, wx.ALIGN_CENTER | wx.ALL, 5)
-
sizerboxTransmitButton = wx.BoxSizer(wx.HORIZONTAL)
sizerboxTransmitButton.Add([20, 20], 0, wx.ALIGN_CENTER | wx.ALL, 5)
self.transmitbutton = wx.Button(self, ID_TRANSMIT, "Transmit", wx.DefaultPosition, wx.DefaultSize, 0)
Modified: trunk/pyscard/src/smartcard/Examples/wx/apdumanager/apdumanager.py
===================================================================
--- trunk/pyscard/src/smartcard/Examples/wx/apdumanager/apdumanager.py 2011-10-16 10:40:43 UTC (rev 553)
+++ trunk/pyscard/src/smartcard/Examples/wx/apdumanager/apdumanager.py 2011-10-16 10:51:41 UTC (rev 554)
@@ -44,12 +44,12 @@
""" This will get us the program's directory,
even if we are frozen using py2exe. From WhereAmI page on py2exe wiki."""
-
if we_are_frozen():
- return os.path.dirname( unicode(sys.executable, sys.getfilesystemencoding( )) )
+ return os.path.dirname(unicode(sys.executable, sys.getfilesystemencoding( )))
return os.path.dirname(unicode(__file__, sys.getfilesystemencoding( )))
+
def main(argv):
app = SimpleSCardApp(
appname='A tool to send apdu to a card',
Modified: trunk/pyscard/src/smartcard/Examples/wx/apdumanager/setup.py
===================================================================
--- trunk/pyscard/src/smartcard/Examples/wx/apdumanager/setup.py 2011-10-16 10:40:43 UTC (rev 553)
+++ trunk/pyscard/src/smartcard/Examples/wx/apdumanager/setup.py 2011-10-16 10:51:41 UTC (rev 554)
@@ -40,5 +40,3 @@
"py2exe":{"dll_excludes":["MSVCP90.dll"]}
}
)
-
-
Modified: trunk/pyscard/src/smartcard/Examples/wx/cardmonitor/cardmonitor.py
===================================================================
--- trunk/pyscard/src/smartcard/Examples/wx/cardmonitor/cardmonitor.py 2011-10-16 10:40:43 UTC (rev 553)
+++ trunk/pyscard/src/smartcard/Examples/wx/cardmonitor/cardmonitor.py 2011-10-16 10:51:41 UTC (rev 554)
@@ -31,6 +31,7 @@
ID_TEXT = 10000
+
def we_are_frozen():
"""Returns whether we are frozen via py2exe.
This will affect how we find out where we are located.
@@ -43,7 +44,6 @@
""" This will get us the program's directory,
even if we are frozen using py2exe. From WhereAmI page on py2exe wiki."""
-
if we_are_frozen():
return os.path.dirname( unicode(sys.executable, sys.getfilesystemencoding( )) )
Modified: trunk/pyscard/src/smartcard/Examples/wx/cardmonitor/setup.py
===================================================================
--- trunk/pyscard/src/smartcard/Examples/wx/cardmonitor/setup.py 2011-10-16 10:40:43 UTC (rev 553)
+++ trunk/pyscard/src/smartcard/Examples/wx/cardmonitor/setup.py 2011-10-16 10:51:41 UTC (rev 554)
@@ -39,5 +39,3 @@
"py2exe":{"dll_excludes":["MSVCP90.dll"]}
}
)
-
-
Modified: trunk/pyscard/src/smartcard/Examples/wx/pcscdiag/pcscdiag.py
===================================================================
--- trunk/pyscard/src/smartcard/Examples/wx/pcscdiag/pcscdiag.py 2011-10-16 10:40:43 UTC (rev 553)
+++ trunk/pyscard/src/smartcard/Examples/wx/pcscdiag/pcscdiag.py 2011-10-16 10:51:41 UTC (rev 554)
@@ -73,7 +73,6 @@
childReader = self.tree.AppendItem(readerNode, repr(reader))
childCard = self.tree.AppendItem(childReader, getATR(reader))
-
readerGroupNode = self.tree.AppendItem(self.tree.GetRootItem(), "Readers Groups")
for readergroup in smartcard.System.readergroups():
childReaderGroup = self.tree.AppendItem(readerGroupNode, readergroup)
Modified: trunk/pyscard/src/smartcard/Examples/wx/readerviewer/readerviewer.py
===================================================================
--- trunk/pyscard/src/smartcard/Examples/wx/readerviewer/readerviewer.py 2011-10-16 10:40:43 UTC (rev 553)
+++ trunk/pyscard/src/smartcard/Examples/wx/readerviewer/readerviewer.py 2011-10-16 10:51:41 UTC (rev 554)
@@ -40,7 +40,6 @@
""" This will get us the program's directory,
even if we are frozen using py2exe. From WhereAmI page on py2exe wiki."""
-
if we_are_frozen():
return os.path.dirname( unicode(sys.executable, sys.getfilesystemencoding( )) )
Modified: trunk/pyscard/src/smartcard/Examples/wx/readerviewer/setup.py
===================================================================
--- trunk/pyscard/src/smartcard/Examples/wx/readerviewer/setup.py 2011-10-16 10:40:43 UTC (rev 553)
+++ trunk/pyscard/src/smartcard/Examples/wx/readerviewer/setup.py 2011-10-16 10:51:41 UTC (rev 554)
@@ -40,5 +40,3 @@
"py2exe":{"dll_excludes":["MSVCP90.dll"]}
}
)
-
-
Modified: trunk/pyscard/src/smartcard/pyro/__init__.py
===================================================================
--- trunk/pyscard/src/smartcard/pyro/__init__.py 2011-10-16 10:40:43 UTC (rev 553)
+++ trunk/pyscard/src/smartcard/pyro/__init__.py 2011-10-16 10:51:41 UTC (rev 554)
@@ -1 +1,23 @@
+"""pyro (remote python) utility module.
+__author__ = "http://www.gemalto.com"
+
+Copyright 2011 gemalto
+Author: Jean-Daniel Aussel, mailto:jea...@ge...
+
+This file is part of pyscard.
+
+pyscard is free software; you can redistribute it and/or modify
+it under the terms of the GNU Lesser General Public License as published by
+the Free Software Foundation; either version 2.1 of the License, or
+(at your option) any later version.
+
+pyscard is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU Lesser General Public License for more details.
+
+You should have received a copy of the GNU Lesser General Public License
+along with pyscard; if not, write to the Free Software
+Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+"""
Modified: trunk/pyscard/src/smartcard/pyro/server/__init__.py
===================================================================
--- trunk/pyscard/src/smartcard/pyro/server/__init__.py 2011-10-16 10:40:43 UTC (rev 553)
+++ trunk/pyscard/src/smartcard/pyro/server/__init__.py 2011-10-16 10:51:41 UTC (rev 554)
@@ -1 +1,23 @@
+"""pyro server utility module.
+__author__ = "http://www.gemalto.com"
+
+Copyright 2011 gemalto
+Author: Jean-Daniel Aussel, mailto:jea...@ge...
+
+This file is part of pyscard.
+
+pyscard is free software; you can redistribute it and/or modify
+it under the terms of the GNU Lesser General Public License as published by
+the Free Software Foundation; either version 2.1 of the License, or
+(at your option) any later version.
+
+pyscard is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU Lesser General Public License for more details.
+
+You should have received a copy of the GNU Lesser General Public License
+along with pyscard; if not, write to the Free Software
+Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+"""
Modified: trunk/pyscard/src/smartcard/test/framework/testcase_ErrorChecking.py
===================================================================
--- trunk/pyscard/src/smartcard/test/framework/testcase_ErrorChecking.py 2011-10-16 10:40:43 UTC (rev 553)
+++ trunk/pyscard/src/smartcard/test/framework/testcase_ErrorChecking.py 2011-10-16 10:51:41 UTC (rev 554)
@@ -263,7 +263,6 @@
ErrorCheckingChain(errorchain, ISO7816_4ErrorChecker()),
ErrorCheckingChain(errorchain, ISO7816_4_SW1ErrorChecker())]
-
# don't care about Warning Exceptions
errorchain[0].addFilterException(smartcard.sw.SWExceptions.WarningProcessingException)
Modified: trunk/pyscard/src/smartcard/wx/SimpleSCardAppFrame.py
===================================================================
--- trunk/pyscard/src/smartcard/wx/SimpleSCardAppFrame.py 2011-10-16 10:40:43 UTC (rev 553)
+++ trunk/pyscard/src/smartcard/wx/SimpleSCardAppFrame.py 2011-10-16 10:51:41 UTC (rev 554)
@@ -73,7 +73,6 @@
boxsizer = wx.BoxSizer(wx.HORIZONTAL)
-
# create user dialog
if None != apppanelclass:
self.dialogpanel = apppanelclass(self)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|