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:
Gerwin Klein 2024-07-18 16:31:03 +10:00
parent ca3c72b795
commit bf2d9627e0
1 changed files with 1 additions and 1 deletions

View File

@ -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))