From 068704c298b23d717d6a13eed61fbb2f5a72ff65 Mon Sep 17 00:00:00 2001 From: ksherlock Date: Tue, 27 Feb 2024 07:03:37 -0500 Subject: scripts/build/verinfo.py: Use a raw string literal for regular expression. (#12069) Fixes Pylint invalid escape sequence warning. --- scripts/build/verinfo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/build/verinfo.py b/scripts/build/verinfo.py index 50f0d7bb1b8..6cbc66813ea 100644 --- a/scripts/build/verinfo.py +++ b/scripts/build/verinfo.py @@ -23,7 +23,7 @@ def parse_args(): def extract_version(verinfo): - pattern = re.compile('\s+BARE_BUILD_VERSION\s+"(([^."]+)\.([^."]+))"') + pattern = re.compile(r'\s+BARE_BUILD_VERSION\s+"(([^."]+)\.([^."]+))"') for line in verinfo: match = pattern.search(line) if match: -- cgit v1.2.3