aboutsummaryrefslogtreecommitdiffstats
path: root/cards
diff options
context:
space:
mode:
authorhploetz <hploetz@f711b948-2313-0410-aaa9-d29f33439f0b>2007-06-09 19:31:05 +0000
committerhploetz <hploetz@f711b948-2313-0410-aaa9-d29f33439f0b>2007-06-09 19:31:05 +0000
commit9a1a0ccdce00451f505f0ac1ca5b51f59d4f21d3 (patch)
tree917dad6e231c7874bd28fede91352feffd5b12bf /cards
parentfd7bcf04a194efce6301df2f7ca27d18863448d2 (diff)
sre is deprecated in python 2.5
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@238 f711b948-2313-0410-aaa9-d29f33439f0b
Diffstat (limited to 'cards')
-rw-r--r--cards/generic_card.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cards/generic_card.py b/cards/generic_card.py
index b851bd2..023cbfa 100644
--- a/cards/generic_card.py
+++ b/cards/generic_card.py
@@ -1,5 +1,5 @@
from utils import pycsc
-import TLV_utils, crypto_utils, utils, binascii, fnmatch, sre
+import TLV_utils, crypto_utils, utils, binascii, fnmatch, re
from utils import C_APDU, R_APDU
DEBUG = True
@@ -254,7 +254,7 @@ class Card:
def match_list(atr, list):
for (knownatr, mask) in list:
if mask is None:
- if sre.match(knownatr, binascii.hexlify(atr), sre.I):
+ if re.match(knownatr, binascii.hexlify(atr), re.I):
return True
else:
if len(knownatr) != len(atr):