From: <lu...@us...> - 2010-06-09 15:07:06
|
Revision: 467 http://pyscard.svn.sourceforge.net/pyscard/?rev=467&view=rev Author: ludov Date: 2010-06-09 15:07:00 +0000 (Wed, 09 Jun 2010) Log Message: ----------- make pep8 happy Modified Paths: -------------- trunk/pyscard/src/smartcard/System.py Modified: trunk/pyscard/src/smartcard/System.py =================================================================== --- trunk/pyscard/src/smartcard/System.py 2010-06-09 15:06:00 UTC (rev 466) +++ trunk/pyscard/src/smartcard/System.py 2010-06-09 15:07:00 UTC (rev 467) @@ -27,7 +27,8 @@ import smartcard.pcsc.PCSCReader import smartcard.pcsc.PCSCReaderGroups -def readers( groups=[] ): + +def readers(groups=[]): """Returns the list of smartcard readers in groups. If group is not specified, returns the list of all smartcard readers. @@ -37,22 +38,24 @@ r=smartcard.readers(['SCard$DefaultReaders', 'MyReaderGroup']) """ - return smartcard.pcsc.PCSCReader.readers( groups ) + return smartcard.pcsc.PCSCReader.readers(groups) + def readergroups(): """Returns the list of reader groups.""" return smartcard.pcsc.PCSCReaderGroups.PCSCReaderGroups() + # for legacy only def listReaders(): """Returns the list of smartcard readers. Deprecated - Use smartcard.System.readers() instead. """ - zreaders=[] + zreaders = [] for reader in readers(): - zreaders.append( str(reader) ) + zreaders.append(str(reader)) return zreaders This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |