diff options
| author | Rapptz <[email protected]> | 2019-11-26 05:19:11 -0500 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2019-11-26 05:19:11 -0500 |
| commit | c62b6c3e8815cec6f73ec20aa4d0ebd9b68a0f14 (patch) | |
| tree | faaa583e4b34a6dbd51126f4079eb85365a20195 /discord | |
| parent | Implement `Webhook.type` (diff) | |
| download | discord.py-c62b6c3e8815cec6f73ec20aa4d0ebd9b68a0f14.tar.xz discord.py-c62b6c3e8815cec6f73ec20aa4d0ebd9b68a0f14.zip | |
Fix more deprecation warnings for 3.8
Diffstat (limited to 'discord')
| -rw-r--r-- | discord/client.py | 2 | ||||
| -rw-r--r-- | discord/gateway.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/discord/client.py b/discord/client.py index 67f6fd83..deabe39b 100644 --- a/discord/client.py +++ b/discord/client.py @@ -74,7 +74,7 @@ def _cancel_tasks(loop): for task in tasks: task.cancel() - loop.run_until_complete(asyncio.gather(*tasks, loop=loop, return_exceptions=True)) + loop.run_until_complete(asyncio.gather(*tasks, return_exceptions=True)) log.info('All tasks finished cancelling.') for task in tasks: diff --git a/discord/gateway.py b/discord/gateway.py index f2dc7fcb..21f4fc66 100644 --- a/discord/gateway.py +++ b/discord/gateway.py @@ -744,7 +744,7 @@ class DiscordVoiceWebSocket(websockets.client.WebSocketClientProtocol): async def poll_event(self): try: - msg = await asyncio.wait_for(self.recv(), timeout=30.0, loop=self.loop) + msg = await asyncio.wait_for(self.recv(), timeout=30.0) await self.received_message(json.loads(msg)) except websockets.exceptions.ConnectionClosed as exc: raise ConnectionClosed(exc, shard_id=None) from exc |