[hptools] sre est deprecated (3)

Ignore-this: 46cd3fb04d294ece3e22c744089a79d

darcs-hash:20090425002812-ffbb2-d142fa30e5c05c62261e3a99762df5a78f2f8121.gz
This commit is contained in:
Nicolas Dandrimont 2009-04-25 02:28:12 +02:00
parent be9e7a9ab5
commit 3829203a82

View file

@ -447,7 +447,7 @@ class sw_prise(sw_chbre):
if __name__ == '__main__' :
import sys, getopt, sre
import sys, getopt, re
try :
options, arg = getopt.getopt(sys.argv[1:], 'U:hc:', [ 'help', 'snmp' ])
@ -480,9 +480,9 @@ if __name__ == '__main__' :
# Quels switchs ?
switchs=[]
if arg :
re=sre.compile(arg[0])
rexp=re.compile(arg[0])
for sw in all_switchs() :
if re.match(sw) :
if rexp.match(sw) :
switchs.append(sw)
if not switchs :