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.
This commit is contained in:
lauren n. liberda 2024-04-15 17:33:55 +02:00 committed by GitHub
parent 755f7d5ed0
commit d80c5f8377
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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