Skip to content

Commit

Permalink
fix(libcxx/**.py): fix invalid escape sequences
Browse files Browse the repository at this point in the history
  • Loading branch information
e-kwsm committed May 31, 2024
1 parent fc21387 commit 29b2165
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion libcxx/test/libcxx/transitive_includes.gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
continue

# Escape slashes for the awk command below
escaped_header = header.replace('/', '\/')
escaped_header = header.replace('/', r'\/')

print(f"""\
//--- {header}.sh.cpp
Expand Down
2 changes: 1 addition & 1 deletion libcxx/utils/generate_escaped_output_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def compactPropertyRanges(input: list[PropertyRange]) -> list[PropertyRange]:
return result


DATA_ARRAY_TEMPLATE = """
DATA_ARRAY_TEMPLATE = r"""
/// The entries of the characters to escape in format's debug string.
///
/// Contains the entries for [format.string.escaped]/2.2.1.2.1
Expand Down
2 changes: 1 addition & 1 deletion libcxx/utils/generate_width_estimation_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def compactPropertyRanges(input: list[PropertyRange]) -> list[PropertyRange]:
return result


DATA_ARRAY_TEMPLATE = """
DATA_ARRAY_TEMPLATE = r"""
/// The entries of the characters with an estimated width of 2.
///
/// Contains the entries for [format.string.std]/12
Expand Down

0 comments on commit 29b2165

Please sign in to comment.