mirror of
https://github.com/nodejs/node.git
synced 2025-08-15 13:48:44 +02:00
tools: fix regex strings in Python tools
PR-URL: https://github.com/nodejs/node/pull/46671 Reviewed-By: Darshan Sen <raisinten@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de>
This commit is contained in:
parent
a384dd42ff
commit
f80e93d71f
3 changed files with 3 additions and 3 deletions
|
@ -14,7 +14,7 @@ def get_has_quic(include_path):
|
||||||
except OSError:
|
except OSError:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
regex = '^#\s*define OPENSSL_INFO_QUIC'
|
regex = r'^#\s*define OPENSSL_INFO_QUIC'
|
||||||
|
|
||||||
for line in f:
|
for line in f:
|
||||||
if (re.match(regex, line)):
|
if (re.match(regex, line)):
|
||||||
|
|
|
@ -86,7 +86,7 @@ INITIALIZER = 'source_.emplace("{0}", UnionBytes{{{1}, {2}}});'
|
||||||
|
|
||||||
CONFIG_GYPI_ID = 'config_raw'
|
CONFIG_GYPI_ID = 'config_raw'
|
||||||
|
|
||||||
SLUGGER_RE =re.compile('[.\-/]')
|
SLUGGER_RE = re.compile(r'[.\-/]')
|
||||||
|
|
||||||
is_verbose = False
|
is_verbose = False
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
import re
|
import re
|
||||||
import os
|
import os
|
||||||
|
|
||||||
PLAIN_SOURCE_RE = re.compile('\s*"([^/$].+)"\s*')
|
PLAIN_SOURCE_RE = re.compile(r'\s*"([^/$].+)"\s*')
|
||||||
def DoMain(args):
|
def DoMain(args):
|
||||||
gn_filename, pattern = args
|
gn_filename, pattern = args
|
||||||
src_root = os.path.dirname(gn_filename)
|
src_root = os.path.dirname(gn_filename)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue