|
From: <jda...@us...> - 2011-10-16 12:12:03
|
Revision: 559
http://pyscard.svn.sourceforge.net/pyscard/?rev=559&view=rev
Author: jdaussel
Date: 2011-10-16 12:11:57 +0000 (Sun, 16 Oct 2011)
Log Message:
-----------
Fixed pep8 E225 missing whitespace around operator
Modified Paths:
--------------
trunk/pyscard/src/smartcard/Examples/wx/apdumanager/setup.py
trunk/pyscard/src/smartcard/test/scard/testcase_listcards.py
Modified: trunk/pyscard/src/smartcard/Examples/wx/apdumanager/setup.py
===================================================================
--- trunk/pyscard/src/smartcard/Examples/wx/apdumanager/setup.py 2011-10-16 11:04:27 UTC (rev 558)
+++ trunk/pyscard/src/smartcard/Examples/wx/apdumanager/setup.py 2011-10-16 12:11:57 UTC (rev 559)
@@ -33,7 +33,7 @@
Mydata_files = [('images', ['images/mysmartcard.ico', ICO_SMARTCARD, ICO_READER])]
-setup(windows=['apdumanager.py'],
+setup(windows = ['apdumanager.py'],
data_files = Mydata_files,
options =
{
Modified: trunk/pyscard/src/smartcard/test/scard/testcase_listcards.py
===================================================================
--- trunk/pyscard/src/smartcard/test/scard/testcase_listcards.py 2011-10-16 11:04:27 UTC (rev 558)
+++ trunk/pyscard/src/smartcard/test/scard/testcase_listcards.py 2011-10-16 12:11:57 UTC (rev 559)
@@ -79,7 +79,7 @@
# locate a known card
# Cryptoflex 8k v2 is present in standard Windows 2000
def test_listcryptoflexbyatr(self):
- if 'Windows-7-6.1.7600'==platform.platform():
+ if 'Windows-7-6.1.7600' == platform.platform():
dmyATR = [0x3B, 0x75, 0x94, 0x00, 0x00, 0x62, 0x02, 0x02, 0x01, 0x01]
dmyName = ['dummycard']
hresult, card = SCardListCards(self.hcontext, dmyATR, [])
@@ -112,7 +112,7 @@
# locate all cards and interfaces in the system
def test_listallcards(self):
- if 'Windows-7-6.1.7600'==platform.platform():
+ if 'Windows-7-6.1.7600' == platform.platform():
expectedCards = ['Identity Device (Microsoft Generic Profile)',
'Identity Device (NIST SP 800-73 [PIV])']
else:
@@ -131,7 +131,7 @@
self.assert_(i in foundCards)
# dummycard has a primary provider, other cards have no primary provider
- if 'Windows-7-6.1.7600'==platform.platform():
+ if 'Windows-7-6.1.7600' == platform.platform():
expectedPrimaryProviderResult = {
'dummycard': [0, self.dummycardguid1],
'Identity Device (Microsoft Generic Profile)': [2, None],
@@ -152,7 +152,7 @@
self.assertEquals(providername, smartcard.guid.GUIDToStr(expectedPrimaryProviderResult[cards[i]][1]))
# dummycard has no CSP, other cards have a CSP
- if 'Windows-7-6.1.7600'==platform.platform():
+ if 'Windows-7-6.1.7600' == platform.platform():
expectedProviderCSPResult = {
'dummycard': [2, None],
'Identity Device (Microsoft Generic Profile)': [0, 'Microsoft Base Smart Card Crypto Provider'],
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|