diff --git a/mbEditorPro2.0/mbEditorPro.py b/mbEditorPro2.0/mbEditorPro.py index dd685e2..b4784a2 100644 --- a/mbEditorPro2.0/mbEditorPro.py +++ b/mbEditorPro2.0/mbEditorPro.py @@ -295,7 +295,10 @@ def test_czones(): arc_out = ArcZone() arc_in.load_binary(in_stream) - parsed = arc_in.save_json() + unread = len(data) - in_stream.buffer.tell() + if unread: + print(res_id, 'unread bytes:', unread) + parsed = json.loads(json.dumps(arc_in.save_json())) arc_out.load_json(parsed) arc_out.save_binary(out_stream) try: