mirror of https://github.com/seL4/l4v.git
trivial: fix regexp string escape complaint
Python 3.12 complains about `\<` not being a legal escape sequence. Use raw string instead. Signed-off-by: Gerwin Klein <gerwin.klein@proofcraft.systems>
This commit is contained in:
parent
ca3c72b795
commit
bf2d9627e0
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue