Skip to content

Commit

Permalink
tools: Fix "invalid escape sequence '\s'" warning
Browse files Browse the repository at this point in the history
  • Loading branch information
nik-sp authored and magreenblatt committed Jul 1, 2024
1 parent c4a6797 commit b95b3e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/make_colorids_header.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def MakeFile(output, input):
segments += MakeFileSegment(file)

# Extract the unique names of all defines.
p = re.compile('#define\s([A-Za-z0-9_]{1,})\s')
p = re.compile(r'#define\s([A-Za-z0-9_]{1,})\s')
all_defines = sorted(set(p.findall(segments)))

undefines = "\n".join(["#undef %s" % define for define in all_defines])
Expand Down

0 comments on commit b95b3e6

Please sign in to comment.