From 51d626eabef3b8310478c6a88c88b2a3cc290bde Mon Sep 17 00:00:00 2001 From: Hornwitser Date: Thu, 9 Aug 2018 14:15:44 +0200 Subject: =?UTF-8?q?[lint]=C2=A0Remove=20redundant=20paranthesis?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Remove redundant parenthisis around await expressions. Left over from f25091ef. --- discord/shard.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'discord/shard.py') diff --git a/discord/shard.py b/discord/shard.py index dfa255f5..eb9727b2 100644 --- a/discord/shard.py +++ b/discord/shard.py @@ -214,7 +214,7 @@ class AutoShardedClient(Client): except Exception: log.info('Failed to connect for shard_id: %s. Retrying...', shard_id) await asyncio.sleep(5.0, loop=self.loop) - return (await self.launch_shard(gateway, shard_id)) + return await self.launch_shard(gateway, shard_id) ws.token = self.http.token ws._connection = self._connection @@ -231,7 +231,7 @@ class AutoShardedClient(Client): except asyncio.TimeoutError: log.info('Timed out when connecting for shard_id: %s. Retrying...', shard_id) await asyncio.sleep(5.0, loop=self.loop) - return (await self.launch_shard(gateway, shard_id)) + return await self.launch_shard(gateway, shard_id) # keep reading the shard while others connect self.shards[shard_id] = ret = Shard(ws, self) -- cgit v1.2.3