wind: Do not use invalid escape sequences
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Tue, 1 Aug 2023 04:54:32 +0000 (16:54 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 28 Nov 2023 23:37:39 +0000 (12:37 +1300)
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
lib/wind/rfc3454.py

index 33f70a9b75c120e5c77f9c187a0aaebb994b16e7..43d059415203afa12181daf53c64d11680f6cf2e 100644 (file)
@@ -47,13 +47,13 @@ def read(filename):
         if not l:
             break
         if inTable:
-            m = re.search('^ *----- End Table ([A-Z0-9\.]+) ----- *$', l)
+            m = re.search(r'^ *----- End Table ([A-Z0-9\.]+) ----- *$', l)
             if m:
                 ret[m.group(1)] = t
                 inTable = False
             else:
                 t.append(l)
-        if re.search('^ *----- Start Table ([A-Z0-9\.]+) ----- *$', l):
+        if re.search(r'^ *----- Start Table ([A-Z0-9\.]+) ----- *$', l):
             inTable = True
             t = []
     f.close()