Skip to content

Commit 01103a8

Browse files
targosaduh95
authored andcommitted
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 3026401 commit 01103a8

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)