From 31bedb741f0118e8aceb62a899b3c12ac6ab175b Mon Sep 17 00:00:00 2001 From: alemi Date: Tue, 12 Oct 2021 01:43:09 +0200 Subject: [PATCH] removed debug stuff --- compiler/proto.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/compiler/proto.py b/compiler/proto.py index 1ff07f4..9f79ac9 100644 --- a/compiler/proto.py +++ b/compiler/proto.py @@ -183,9 +183,6 @@ def compile(): "slots" : packet[1], } - with open("/home/dev/HELP.json", "w") as f: - json.dump(PACKETS, f, indent=2) - _make_module(mc_path / 'proto', { k:"*" for k in PACKETS.keys() }) for state in PACKETS.keys(): _make_module(mc_path / f"proto/{state}", { k:"*" for k in PACKETS[state].keys() }) @@ -202,8 +199,6 @@ def compile(): v_slots = [] v_fields = [] for slot in defn["slots"]: - with open("/home/dev/SLOTS", "a") as f: - f.write(str(slot) + "\n") v_slots.append(parse_slot(slot)) fields.add(parse_field(slot)) slots.append(f"{v} : ( {','.join(v_slots)} ),")