From 8a1471b7bee654a02fc205dd4de7bebd12084435 Mon Sep 17 00:00:00 2001 From: Sam Moore Date: Wed, 27 Mar 2013 12:42:57 +0800 Subject: [PATCH] Fix bug with NetworkReceiver Player was getting None as a name string --- qchess/qchess.py | 4 ++-- qchess/src/network.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/qchess/qchess.py b/qchess/qchess.py index 40a3d3e..e2293ae 100755 --- a/qchess/qchess.py +++ b/qchess/qchess.py @@ -1256,7 +1256,7 @@ class NetworkSender(Player,Network): class NetworkReceiver(Player,Network): def __init__(self, colour, address=None): - Player.__init__(self, address, colour) + Player.__init__(self, "NetworkReceiver", colour) self.address = address @@ -2633,4 +2633,4 @@ if __name__ == "__main__": sys.exit(102) # --- main.py --- # -# EOF - created from make on Wed Mar 27 12:38:30 WST 2013 +# EOF - created from make on Wed Mar 27 12:42:42 WST 2013 diff --git a/qchess/src/network.py b/qchess/src/network.py index 72467d8..20f632b 100644 --- a/qchess/src/network.py +++ b/qchess/src/network.py @@ -132,7 +132,7 @@ class NetworkSender(Player,Network): class NetworkReceiver(Player,Network): def __init__(self, colour, address=None): - Player.__init__(self, address, colour) + Player.__init__(self, "NetworkReceiver", colour) self.address = address -- 2.20.1