Skip to content

Commit 1cd04f1

Browse files
committed
fix(polly/**.py): fix invalid escape sequences
1 parent fc21387 commit 1cd04f1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

polly/test/update_check.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ def classyfier2(lines):
222222
line = i.__next__()
223223

224224

225-
replrepl = {"{{": "{{[{][{]}}", "}}": "{{[}][}]}}", "[[": "{{\[\[}}", "]]": "{{\]\]}}"}
225+
replrepl = {"{{": "{{[{][{]}}", "}}": "{{[}][}]}}", "[[": r"{{\[\[}}", "]]": r"{{\]\]}}"}
226226
replre = re.compile("|".join(re.escape(k) for k in replrepl.keys()))
227227

228228

@@ -452,7 +452,7 @@ def main():
452452
checkre = re.compile(
453453
r"^\s*\;\s*("
454454
+ "|".join([re.escape(s) for s in checkprefixes])
455-
+ ")(\-NEXT|\-DAG|\-NOT|\-LABEL|\-SAME)?\s*\:"
455+
+ r")(\-NEXT|\-DAG|\-NOT|\-LABEL|\-SAME)?\s*\:"
456456
)
457457
firstcheckline = None
458458
firstnoncommentline = None

0 commit comments

Comments
 (0)