contrib/check-code.py
changeset 43503 313e3a279828
parent 43112 24a07347aa60
child 45830 c102b704edb5
--- a/contrib/check-code.py	Thu Nov 07 03:59:22 2019 -0800
+++ b/contrib/check-code.py	Thu Nov 07 13:18:19 2019 -0500
@@ -281,10 +281,10 @@
     for tp in testpats[i]:
         p = tp[0]
         m = tp[1]
-        if p.startswith(r'^'):
-            p = r"^  [$>] (%s)" % p[1:]
+        if p.startswith('^'):
+            p = "^  [$>] (%s)" % p[1:]
         else:
-            p = r"^  [$>] .*(%s)" % p
+            p = "^  [$>] .*(%s)" % p
         utestpats[i].append((p, m) + tp[2:])
 
 # don't transform the following rules: