mirror of
https://github.com/nodejs/node.git
synced 2024-11-24 03:07:54 +01:00
tools: fix invalid escape sequence in mkssldef
Use a raw string for the regex. PR-URL: https://github.com/nodejs/node/pull/52624 Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
parent
9fe0e46807
commit
6f738b3a1a
@ -26,7 +26,7 @@ if __name__ == '__main__':
|
||||
|
||||
for filename in filenames:
|
||||
for line in open(filename).readlines():
|
||||
name, _, _, meta, _ = re.split('\s+', line)
|
||||
name, _, _, meta, _ = re.split(r'\s+', line)
|
||||
if any(p.match(name) for p in excludes): continue
|
||||
meta = meta.split(':')
|
||||
assert meta[0] in ('EXIST', 'NOEXIST')
|
||||
|
Loading…
Reference in New Issue
Block a user