From: Sam Moore Date: Wed, 27 Mar 2013 04:42:57 +0000 (+0800) Subject: Fix bug with NetworkReceiver X-Git-Url: https://git.ucc.asn.au/?p=progcomp2013.git;a=commitdiff_plain;h=8a1471b7bee654a02fc205dd4de7bebd12084435 Fix bug with NetworkReceiver Player was getting None as a name string --- 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