scripts/feature_to_c: avoid SyntaxWarning

The backslash must be escaped.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
Paolo Bonzini committed 2026-08-26 16:12:51 +02:00
1 parent 3a87bc9f07
commit 7bca0ea74a
1 file changed
+1 -1
+1 -1
View File
@@ -25,7 +25,7 @@ def writeliteral(indent, bytes):
elif c >= 32 and c < 127:
sys.stdout.write(c.to_bytes(1, 'big').decode())
else:
sys.stdout.write(f'\{c:03o}')
sys.stdout.write(f'\\{c:03o}')
if quoted:
sys.stdout.write('"')