build_library/disk_util: Fix a warning

Python warns about an invalid escaped sequence (\s) within a string -
make the string raw, so python stops treating backslashes as special
characters.

Signed-off-by: Krzesimir Nowak <knowak@microsoft.com>
This commit is contained in:
Krzesimir Nowak 2025-08-29 15:18:10 +02:00
parent a0fc0432ee
commit 41b3553153

View File

@ -799,7 +799,7 @@ def Verity(options):
'--hash-offset', part['fs_bytes'],
loop_dev, loop_dev]).decode('utf8')
print(verityout.strip())
m = re.search("Root hash:\s+([a-f0-9]{64})$", verityout, re.IGNORECASE|re.MULTILINE)
m = re.search(r'Root hash:\s+([a-f0-9]{64})$', verityout, re.IGNORECASE|re.MULTILINE)
if not m:
raise Exception("Failed to parse verity output!")