From 6f738b3a1ab6529d4e64447d24dc85f73d304ac4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Zasso?= Date: Tue, 23 Apr 2024 15:04:51 +0200 Subject: [PATCH] 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 Reviewed-By: Benjamin Gruenbaum Reviewed-By: Mohammed Keyvanzadeh Reviewed-By: James M Snell Reviewed-By: Luigi Pinca --- tools/mkssldef.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/mkssldef.py b/tools/mkssldef.py index 4768d1ff0ff..43e01b4bf70 100755 --- a/tools/mkssldef.py +++ b/tools/mkssldef.py @@ -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')