From 11cbf70f26cf71a0337fbc9d96fdc7fbb3deec32 Mon Sep 17 00:00:00 2001 From: Sam Moore Date: Wed, 27 Mar 2013 12:38:44 +0800 Subject: [PATCH] Trying to fix networking --- qchess/qchess.py | 4 ++-- qchess/src/log.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/qchess/qchess.py b/qchess/qchess.py index 5883ca5..40a3d3e 100755 --- a/qchess/qchess.py +++ b/qchess/qchess.py @@ -1349,7 +1349,7 @@ class LogFile(): def setup(self, board, players): for p in players: - self.log.write("# " + p.colour + " : " + p.name + "\n") + self.log.write("# " + str(p.colour) + " : " + str(p.name) + "\n") self.log.write("# Initial board\n") for x in range(0, w): @@ -2633,4 +2633,4 @@ if __name__ == "__main__": sys.exit(102) # --- main.py --- # -# EOF - created from make on Sat Mar 23 12:55:44 WST 2013 +# EOF - created from make on Wed Mar 27 12:38:30 WST 2013 diff --git a/qchess/src/log.py b/qchess/src/log.py index af0c2a7..96c3c92 100644 --- a/qchess/src/log.py +++ b/qchess/src/log.py @@ -17,7 +17,7 @@ class LogFile(): def setup(self, board, players): for p in players: - self.log.write("# " + p.colour + " : " + p.name + "\n") + self.log.write("# " + str(p.colour) + " : " + str(p.name) + "\n") self.log.write("# Initial board\n") for x in range(0, w): -- 2.20.1