diff options
| author | Paolo Bonzini <pbonzini@redhat.com> | 2026-08-24 10:34:57 +0200 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2026-08-26 16:12:51 +0200 |
| commit | 7bca0ea74a049839e030c7fb33e82c0a7f7cd791 (patch) | |
| tree | 41f70829074ab2fe4ec5fd661becce208693e67c /scripts | |
| parent | 3a87bc9f07aece1944e21d86a8f1bbaf1251f132 (diff) | |
| download | qemu-7bca0ea74a049839e030c7fb33e82c0a7f7cd791.tar.gz qemu-7bca0ea74a049839e030c7fb33e82c0a7f7cd791.zip | |
scripts/feature_to_c: avoid SyntaxWarning
The backslash must be escaped.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/feature_to_c.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/feature_to_c.py b/scripts/feature_to_c.py index a52cd2e9ec..4275b75817 100644 --- a/scripts/feature_to_c.py +++ b/scripts/feature_to_c.py @@ -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('"') |
