[hptools] sre est deprecated (3)
Ignore-this: 46cd3fb04d294ece3e22c744089a79d darcs-hash:20090425002812-ffbb2-d142fa30e5c05c62261e3a99762df5a78f2f8121.gz
This commit is contained in:
parent
be9e7a9ab5
commit
3829203a82
1 changed files with 3 additions and 3 deletions
|
@ -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 :
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue