From 91dd475e7a5e1351d1f76cf8d6df6fc8557d2e9c Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Sat, 9 Jan 2016 18:06:44 +0100 Subject: [PATCH] Client: Remove debugging code, superfluous whitespace. --- client/commands.py | 2 +- client/config/commands.py | 1 - roguelike-client | 4 ---- 3 files changed, 1 insertion(+), 6 deletions(-) diff --git a/client/commands.py b/client/commands.py index 159af5d..61cffac 100644 --- a/client/commands.py +++ b/client/commands.py @@ -22,7 +22,7 @@ def command_sender(string, int_field=None): int_string = "" if int_field: int_string = " " + str(world_data[int_field]) - send(string + int_string) + send(string + int_string) return command_send diff --git a/client/config/commands.py b/client/config/commands.py index c6cd627..7de9574 100644 --- a/client/config/commands.py +++ b/client/config/commands.py @@ -21,4 +21,3 @@ commands = { "w": (command_sender("move north-west"), command_looker("north-west")), "x": (command_sender("move south-west"), command_looker("south-west")), } - diff --git a/roguelike-client b/roguelike-client index cf5b424..3526300 100755 --- a/roguelike-client +++ b/roguelike-client @@ -204,10 +204,6 @@ def draw_screen(): draw_scroll_string(winmap_size[i] - offset[i] - win.size[i]) for win in windows: - logfile = open("logfile", "a") - logfile.write(repr(Window) + "\n") - logfile.write(repr(win) + "\n") - logfile.close() offset, winmap_size, winmap = win.draw() draw_winmap() draw_scroll_hints() -- 2.30.2