From c92a60fb101bec9e24e4593b33cea2bc1aaaa8c1 Mon Sep 17 00:00:00 2001 From: hploetz Date: Sat, 16 Jun 2007 06:56:57 +0000 Subject: Switch smartcard interface to pyscard from http://pyscard.sourceforge.net/ pycsc no longer supported API change: utils doesn't export "pycsc" anymore API change: utils.CommandLineArgumentHelper.connect now returns smartcard.CardService.CardService instance API change: cards.generic_card.Card.__init__ and ...can_handle (and therefore cards.new_card_object) now expect CardService or CardConnection instance git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@247 f711b948-2313-0410-aaa9-d29f33439f0b --- readpass.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'readpass.py') diff --git a/readpass.py b/readpass.py index 1e36ba2..ad38508 100755 --- a/readpass.py +++ b/readpass.py @@ -1,7 +1,6 @@ #!/usr/bin/env python # -*- coding: iso-8859-1 -*- -from utils import pycsc import utils, cards, TLV_utils, sys, binascii, time, traceback OPTIONS = "GW:R:" @@ -25,8 +24,8 @@ if __name__ == "__main__": read_files = value if read_files is None: - pycsc_card = c.connect() - card = cards.new_card_object(pycsc_card) + card_object = c.connect() + card = cards.new_card_object(card_object) cards.generic_card.DEBUG = False print >>sys.stderr, "Using %s" % card.DRIVER_NAME -- cgit v1.2.3