Skip to content

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 <corentinjabot@gmail.com>
  • Loading branch information
DamonFool and cor3ntin committed 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.