[Pcsclite-cvs-commit] r4791 - /trunk/PCSC/UnitaryTests/control_get_firmware.py

rousseau at users.alioth.debian.org rousseau at users.alioth.debian.org
Thu Mar 4 13:40:24 UTC 2010


Author: rousseau
Date: Thu Mar  4 13:40:23 2010
New Revision: 4791

URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=4791
Log:
make pylint happy

Modified:
    trunk/PCSC/UnitaryTests/control_get_firmware.py

Modified: trunk/PCSC/UnitaryTests/control_get_firmware.py
URL: http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/UnitaryTests/control_get_firmware.py?rev=4791&op=diff
==============================================================================
--- trunk/PCSC/UnitaryTests/control_get_firmware.py (original)
+++ trunk/PCSC/UnitaryTests/control_get_firmware.py Thu Mar  4 13:40:23 2010
@@ -1,8 +1,10 @@
 #! /usr/bin/env python
 
+"""
 #   control_get_firmware.py: get firmware version of Gemalto readers
-#   Copyright (C) 2009  Ludovic Rousseau
-#
+#   Copyright (C) 2009-2010  Ludovic Rousseau
+"""
+
 #   This program is free software; you can redistribute it and/or modify
 #   it under the terms of the GNU General Public License as published by
 #   the Free Software Foundation; either version 2 of the License, or
@@ -18,11 +20,13 @@
 #   51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 
 from smartcard.pcsc.PCSCReader import readers
-from smartcard.pcsc.PCSCPart10 import *
+from smartcard.pcsc.PCSCPart10 import (SCARD_SHARE_DIRECT,
+    SCARD_LEAVE_CARD, SCARD_CTL_CODE)
 
 for reader in readers():
     cardConnection = reader.createConnection()
-    cardConnection.connect(mode=SCARD_SHARE_DIRECT, disposition=SCARD_LEAVE_CARD)
+    cardConnection.connect(mode=SCARD_SHARE_DIRECT,
+        disposition=SCARD_LEAVE_CARD)
 
     get_firmware = [0x02]
     IOCTL_SMARTCARD_VENDOR_IFD_EXCHANGE = SCARD_CTL_CODE(1)




More information about the Pcsclite-cvs-commit mailing list