Skip to content

Commit cbd8437

Browse files
committed
Fix python snippet causing "SyntaxWarning" in Scanner.
1 parent 8f0cb8a commit cbd8437

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/cmdlineTests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ import re, sys
216216
json = open("$stdout_path", "r").read()
217217
json = re.sub(r"{[^{}]*Warning: This is a pre-release compiler version[^{}]*},?", "", json)
218218
json = re.sub(r"\"errors\":\s*\[\s*\],?","\n" if json[1] == " " else "",json) # Remove "errors" array if it's not empty
219-
json = re.sub("\n\\s*\n", "\n", json) # Remove trailing whitespace
219+
json = re.sub(r"\n\s*\n", "\n", json) # Remove trailing whitespace
220220
json = re.sub(r"},(\n{0,1})\n*(\s*(]|}))", r"}\1\2", json) # Remove trailing comma
221221
open("$stdout_path", "w").write(json)
222222
EOF

0 commit comments

Comments
 (0)