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:
parent
755f7d5ed0
commit
d80c5f8377
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue