Skip to content
This repository has been archived by the owner on Jan 20, 2024. It is now read-only.

Commit

Permalink
[clang] SyntaxWarning: invalid escape sequence '\s' with Python3.12 (…
Browse files Browse the repository at this point in the history
…#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]>
  • Loading branch information
DamonFool and cor3ntin authored Jan 14, 2024
1 parent db17a3f commit 7851670
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clang/tools/libclang/linker-script-to-export-list.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
output_file = open(sys.argv[2], "w")

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

0 comments on commit 7851670

Please sign in to comment.