Skip to content

Commit 7851670

Browse files
DamonFoolcor3ntin
andauthored
[clang] SyntaxWarning: invalid escape sequence '\s' with Python3.12 (llvm#78036)
llvm-project/clang/tools/libclang/linker-script-to-export-list.py:9: SyntaxWarning: invalid escape sequence '\s' m = re.search("^\s+(clang_[^;]+)", line) Co-authored-by: cor3ntin <[email protected]>
1 parent db17a3f commit 7851670

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/tools/libclang/linker-script-to-export-list.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66
output_file = open(sys.argv[2], "w")
77

88
for line in input_file:
9-
m = re.search("^\s+(clang_[^;]+)", line)
9+
m = re.search(r"^\s+(clang_[^;]+)", line)
1010
if m:
1111
output_file.write(m.group(1) + "\n")

0 commit comments

Comments
 (0)