From 01103a85cb4ea3a53fe52df3e405a9589c45062d 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 4768d1ff0ff699..43e01b4bf70837 100755 --- a/tools/mkssldef.py +++ b/tools/mkssldef.py @@ -26,7 +26,7 @@ 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')