Skip to content

Commit

Permalink
trivial: fix regexp string escape complaint
Browse files Browse the repository at this point in the history
Python 3.12 complains about `\<` not being a legal escape sequence. Use
raw string instead.

Signed-off-by: Gerwin Klein <[email protected]>
  • Loading branch information
lsf37 committed Jul 18, 2024
1 parent 04af0ee commit 25f877e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion misc/bump/ver-bump.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def main():
with open(args.manifest, 'w') as manifest:
found = False
for line in lines:
if re.match(' \<project name="seL4" revision="[a-f0-9]{40}', line) and not found:
if re.match(r' \<project name="seL4" revision="[a-f0-9]{40}', line) and not found:
found = True
manifest.write(re.sub('revision="[a-f0-9]{40}',
'revision="' + args.revision, line))
Expand Down

0 comments on commit 25f877e

Please sign in to comment.