scripts/feature_to_c: avoid SyntaxWarning
The backslash must be escaped. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
1 parent
3a87bc9f07
commit
7bca0ea74a
1 file changed
+1
-1
@@ -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('"')
|
||||
|
||||
Reference in new issue
Block a user