Skip to content

Commit

Permalink
tools: fix invalid escape sequence in mkssldef
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
targos authored and aduh95 committed Apr 29, 2024
1 parent 3026401 commit 01103a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/mkssldef.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 01103a8

Please sign in to comment.