diff options
author | Philip Paquette <pcpaquette@gmail.com> | 2019-09-11 17:01:24 -0400 |
---|---|---|
committer | Philip Paquette <pcpaquette@gmail.com> | 2019-09-14 18:18:53 -0400 |
commit | 57c9c33ae756cc17af223f6bc671191684ee9c9b (patch) | |
tree | 048554a3f883ec2530c68eed20665d25caeaed57 /diplomacy/client/network_game.py | |
parent | 8ca9bcfbad2b93e1466f290cf8d7eb82e3bf8146 (diff) |
Renamed argument in channel methods from 'game_object' to 'game'
Diffstat (limited to 'diplomacy/client/network_game.py')
-rw-r--r-- | diplomacy/client/network_game.py | 4 |
1 files changed, 2 insertions, 2 deletions
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) |