Skip to content

Commit 1d37e77

Browse files
targosmarco-ippolito
authored andcommitted
tools: fix invalid escape sequence in mkssldef
Use a raw string for the regex. PR-URL: #52624 Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Mohammed Keyvanzadeh <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent 235ab4f commit 1d37e77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/mkssldef.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
for filename in filenames:
2828
for line in open(filename).readlines():
29-
name, _, _, meta, _ = re.split('\s+', line)
29+
name, _, _, meta, _ = re.split(r'\s+', line)
3030
if any(p.match(name) for p in excludes): continue
3131
meta = meta.split(':')
3232
assert meta[0] in ('EXIST', 'NOEXIST')

0 commit comments

Comments
 (0)