@samitouri / QOSamiQemu / commits / 7bca0ea74a

scripts/feature_to_c: avoid SyntaxWarning

The backslash must be escaped. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>

Paolo Bonzini committed Aug 24, 2026 at 10:34 UTC 7bca0ea74a049839e030c7fb33e82c0a7f7cd791
1 file changed +1 -1
scripts/feature_to_c.py
+1 -1
@@ -25,7 +25,7 @@ def writeliteral(indent, bytes):
25 elif c >= 32 and c < 127:
26 sys.stdout.write(c.to_bytes(1, 'big').decode())
27 else:
28 - sys.stdout.write(f'\{c:03o}')
28 + sys.stdout.write(f'\\{c:03o}')
29
30 if quoted:
31 sys.stdout.write('"')