diff options
| author | Hornwitser <[email protected]> | 2018-06-22 16:56:02 +0200 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2018-11-24 22:17:57 -0500 |
| commit | 633192b3cda8d9a8cbe294960604ef7d46ce6ea1 (patch) | |
| tree | 028680e11b98696938f5ce3f8803029f804ec253 /discord/gateway.py | |
| parent | [lint] Rename exception variables to exc (diff) | |
| download | discord.py-633192b3cda8d9a8cbe294960604ef7d46ce6ea1.tar.xz discord.py-633192b3cda8d9a8cbe294960604ef7d46ce6ea1.zip | |
[lint] Replace equality comparisons to singletons
Restrict the values accepted by comparisons with booleans to be actual
booleans.
Minor breaking of undocumented behaviour in permissions; the value to
set bits to must be booleans (as indicated by the type error thrown).
Diffstat (limited to 'discord/gateway.py')
| -rw-r--r-- | discord/gateway.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/gateway.py b/discord/gateway.py index b3fca3a3..caca7e09 100644 --- a/discord/gateway.py +++ b/discord/gateway.py @@ -363,7 +363,7 @@ class DiscordWebSocket(websockets.client.WebSocketClientProtocol): return if op == self.INVALIDATE_SESSION: - if data == True: + if data is True: await asyncio.sleep(5.0, loop=self.loop) await self.close() raise ResumeWebSocket(self.shard_id) |