fxconv: fix stupid compact mode bug

This commit is contained in:
Lephenixnoir 2024-02-03 15:59:44 +01:00
parent 6e62fb7d6d
commit 4a84bfdcd4
No known key found for this signature in database
GPG key ID: 1BBA026E13FC0495

View file

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