From 4a84bfdcd41e3a2dbc3526fbb9afcc7b9dae582f Mon Sep 17 00:00:00 2001 From: Lephenixnoir Date: Sat, 3 Feb 2024 15:59:44 +0100 Subject: [PATCH] fxconv: fix stupid compact mode bug --- fxconv/fxconv.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fxconv/fxconv.py b/fxconv/fxconv.py index b23d90c..f91d003 100644 --- a/fxconv/fxconv.py +++ b/fxconv/fxconv.py @@ -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"))