Skip to content

Commit f26d984

Browse files
authored
[SYCL] Use raw string for python regex. NFC (#13089)
This prevents a warning being shown on some versions of python.
1 parent a012ad2 commit f26d984

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sycl/tools/sycl-trace/generate_ze_pretty_printers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def generate_ze_pretty_printers(header):
3333

3434
param_type = "ze_" + camel_to_snake(api_name_tail) + "_params_t"
3535

36-
search_str = "typedef struct _{}\n{{\n([0-9\sa-zA-Z_\*;\n]*)}}".format(
36+
search_str = r"typedef struct _{}\n{{\n([0-9\sa-zA-Z_\*;\n]*)}}".format(
3737
param_type
3838
)
3939
args = re.search(search_str, header)

0 commit comments

Comments
 (0)