Skip to content

Commit 1d37e77

Browse files
targosmarco-ippolito
authored andcommittedMay 3, 2024
tools: fix invalid escape sequence in mkssldef
Use a raw string for the regex. PR-URL: #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>
1 parent 235ab4f commit 1d37e77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎tools/mkssldef.py

+1-1
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)
Please sign in to comment.