tools: Fix "invalid escape sequence '\s'" warning

This commit is contained in:
Nik Pavlov 2024-07-01 15:12:35 +00:00 committed by Marshall Greenblatt
parent c4a6797059
commit b95b3e6fd5
1 changed files with 1 additions and 1 deletions

View File

@ -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])