wind: Do not use invalid escape sequences
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
This commit is contained in:

committed by
Jeffrey Altman

parent
a9f21ebdac
commit
ff079377f2
@@ -47,13 +47,13 @@ def read(filename):
|
|||||||
if not l:
|
if not l:
|
||||||
break
|
break
|
||||||
if inTable:
|
if inTable:
|
||||||
m = re.search('^ *----- End Table ([A-Z0-9\.]+) ----- *$', l)
|
m = re.search(r'^ *----- End Table ([A-Z0-9\.]+) ----- *$', l)
|
||||||
if m:
|
if m:
|
||||||
ret[m.group(1)] = t
|
ret[m.group(1)] = t
|
||||||
inTable = False
|
inTable = False
|
||||||
else:
|
else:
|
||||||
t.append(l)
|
t.append(l)
|
||||||
if re.search('^ *----- Start Table ([A-Z0-9\.]+) ----- *$', l):
|
if re.search(r'^ *----- Start Table ([A-Z0-9\.]+) ----- *$', l):
|
||||||
inTable = True
|
inTable = True
|
||||||
t = []
|
t = []
|
||||||
f.close()
|
f.close()
|
||||||
|
Reference in New Issue
Block a user