From 6d83836fcbe7b1a48cbe6335bfa100092a7e52c6 Mon Sep 17 00:00:00 2001 From: alemidev Date: Thu, 18 Nov 2021 02:58:45 +0100 Subject: [PATCH] removed debug leftovers --- compiler/proto.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/compiler/proto.py b/compiler/proto.py index c8148ea..16e29b8 100644 --- a/compiler/proto.py +++ b/compiler/proto.py @@ -233,8 +233,8 @@ def compile(): ).compile() ) - with open(mc_path / f"proto/{state}/{direction}/__init__.py", "a") as f, open("/home/alemi/REGISTRY", "a") as fdbg: - buf = ( # TODO make this thing actually readable, maybe not using nested joins and generators + with open(mc_path / f"proto/{state}/{direction}/__init__.py", "a") as f: + f.write( # TODO make this thing actually readable, maybe not using nested joins and generators REGISTRY_ENTRY.format( entries='{\n\t' + ",\n\t".join(( str(v) + " : { " + ", ".join( @@ -243,8 +243,6 @@ def compile(): ) + '\n}' ) ) - f.write(buf) - fdbg.write(buf)