home
·
contact
·
privacy
projects
/
plomrogue
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a553633
)
New client: Remove debugging code.
author
Christian Heller
<c.heller@plomlompom.de>
Sat, 7 Nov 2015 20:37:17 +0000
(21:37 +0100)
committer
Christian Heller
<c.heller@plomlompom.de>
Sat, 7 Nov 2015 20:37:17 +0000
(21:37 +0100)
client_prototype.py
patch
|
blob
|
history
diff --git
a/client_prototype.py
b/client_prototype.py
index b19f50cb771d96e301a425f78cbb72ce2e576d45..181468ddd9da07cd9155bbf878027add00ec8618 100644
(file)
--- 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()
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]
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:
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:
if "file_out" in io:
io["file_out"].close()
if "file_in" in io: