fxconv: fix stupid compact mode bug

This commit is contained in:
Lephenixnoir 2024-02-03 15:59:44 +01:00
parent 6e62fb7d6d
commit 4a84bfdcd4
Signed by: Lephenixnoir
GPG Key ID: 1BBA026E13FC0495
1 changed files with 2 additions and 1 deletions

View File

@ -1339,7 +1339,8 @@ def pyout(bits, output, params):
if isinstance(section, bytes):
if params["py"]["compact"]:
fp.write(b'b"')
fp.write(section)
for byte in section:
fp.write(byteify(byte))
fp.write(b'"')
else:
fp.write(repr(section).encode("utf-8"))