From d80c5f8377d2b8088a27fe354512dcd909b4cd0f Mon Sep 17 00:00:00 2001 From: "lauren n. liberda" Date: Mon, 15 Apr 2024 17:33:55 +0200 Subject: [PATCH] build: redundant regex character class in generate-config-gypi.py (#41858) fix: redundant regex character class in generate-config-gypi.py '\w' already includes '_'. solves a SyntaxWarning on python 3.12. --- script/generate-config-gypi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/generate-config-gypi.py b/script/generate-config-gypi.py index d0b92bae819f..b41cd7eb4501 100755 --- a/script/generate-config-gypi.py +++ b/script/generate-config-gypi.py @@ -40,7 +40,7 @@ def read_electron_args(): for line in file_in: if line.startswith('#'): continue - m = re.match('([\w_]+) = (.+)', line) + m = re.match('(\w+) = (.+)', line) if m == None: continue args[m.group(1)] = m.group(2)