From b95b3e6fd5c798ee96a4bd3e7aa1354d93df3c29 Mon Sep 17 00:00:00 2001 From: Nik Pavlov Date: Mon, 1 Jul 2024 15:12:35 +0000 Subject: [PATCH] tools: Fix "invalid escape sequence '\s'" warning --- tools/make_colorids_header.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/make_colorids_header.py b/tools/make_colorids_header.py index 12763e698f..16af78ec85 100644 --- a/tools/make_colorids_header.py +++ b/tools/make_colorids_header.py @@ -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])