From 57c9c33ae756cc17af223f6bc671191684ee9c9b Mon Sep 17 00:00:00 2001 From: Philip Paquette Date: Wed, 11 Sep 2019 17:01:24 -0400 Subject: Renamed argument in channel methods from 'game_object' to 'game' --- diplomacy/client/network_game.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'diplomacy/client/network_game.py') diff --git a/diplomacy/client/network_game.py b/diplomacy/client/network_game.py index 10b97d8..12f4aba 100644 --- a/diplomacy/client/network_game.py +++ b/diplomacy/client/network_game.py @@ -32,7 +32,7 @@ def _game_request_method(channel_method): # NB: Channel method returns a future. if not self.channel: raise DiplomacyException('Invalid client game.') - return channel_method(self.channel, game_object=self, **kwargs) + return channel_method(self.channel, game=self, **kwargs) func.__doc__ = """ Send game request :class:`.%(request_name)s`%(with_params)s``kwargs``. @@ -123,7 +123,7 @@ class NetworkGame(Game): """ Send a :class:`.Synchronize` request to synchronize this game with associated server game. """ if not self.channel: raise DiplomacyException('Invalid client game.') - return self.channel._synchronize(game_object=self, timestamp=self.get_latest_timestamp()) + return self.channel._synchronize(game=self, timestamp=self.get_latest_timestamp()) # Admin / Moderator API. delete = _game_request_method(Channel._delete_game) -- cgit v1.2.3