Skip to content

Commit 29b2165

Browse files
committed
fix(libcxx/**.py): fix invalid escape sequences
1 parent fc21387 commit 29b2165

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

libcxx/test/libcxx/transitive_includes.gen.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
continue
6060

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

6464
print(f"""\
6565
//--- {header}.sh.cpp

libcxx/utils/generate_escaped_output_table.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def compactPropertyRanges(input: list[PropertyRange]) -> list[PropertyRange]:
8484
return result
8585

8686

87-
DATA_ARRAY_TEMPLATE = """
87+
DATA_ARRAY_TEMPLATE = r"""
8888
/// The entries of the characters to escape in format's debug string.
8989
///
9090
/// Contains the entries for [format.string.escaped]/2.2.1.2.1

libcxx/utils/generate_width_estimation_table.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def compactPropertyRanges(input: list[PropertyRange]) -> list[PropertyRange]:
9999
return result
100100

101101

102-
DATA_ARRAY_TEMPLATE = """
102+
DATA_ARRAY_TEMPLATE = r"""
103103
/// The entries of the characters with an estimated width of 2.
104104
///
105105
/// Contains the entries for [format.string.std]/12

0 commit comments

Comments
 (0)