From: Christian Heller Date: Sat, 7 Nov 2015 20:37:17 +0000 (+0100) Subject: New client: Remove debugging code. X-Git-Tag: tce~258 X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/%7B%7Bprefix%7D%7D/edit?a=commitdiff_plain;h=a8a5f07a85791ba493ad6bbc60dd8a3f6573a04e;p=plomrogue New client: Remove debugging code. --- diff --git a/client_prototype.py b/client_prototype.py index b19f50c..181468d 100644 --- a/client_prototype.py +++ b/client_prototype.py @@ -189,10 +189,6 @@ def read_into_message_queue(string): if string[-1] is not "\n": new_open_end = True new_messages = string.splitlines() - logfile = open("log", "a") - logfile.write(str(new_messages) + "\n") - logfile.flush() - logfile.close() if message_queue["open_end"]: message_queue["messages"][-1] = message_queue["messages"][-1] + new_messages[0] del new_messages[0] @@ -275,10 +271,6 @@ except: print("SOMETHING WENT WRONG IN UNEXPECTED WAYS") raise finally: - logfile = open("log", "a") - logfile.write(str(message_queue)) - logfile.flush() - logfile.close() if "file_out" in io: io["file_out"].close() if "file_in" in io: