aboutsummaryrefslogtreecommitdiff
path: root/discord/gateway.py
diff options
context:
space:
mode:
authorHornwitser <[email protected]>2018-06-22 16:08:27 +0200
committerRapptz <[email protected]>2018-08-22 21:43:53 -0400
commitc8b49d37be8c4aabb2d5896708f9dff91ffae368 (patch)
treed0b49a0532a69f7c34b330d54cc57b65719ad1ea /discord/gateway.py
parent[lint] Remove unnecessary lambdas (diff)
downloaddiscord.py-c8b49d37be8c4aabb2d5896708f9dff91ffae368.tar.xz
discord.py-c8b49d37be8c4aabb2d5896708f9dff91ffae368.zip
[lint] Fix incorrect and inconsistent whitespace
Adjust whitespace to be consistent with the rest of the library.
Diffstat (limited to 'discord/gateway.py')
-rw-r--r--discord/gateway.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/discord/gateway.py b/discord/gateway.py
index c8bc17e5..e5c4cb82 100644
--- a/discord/gateway.py
+++ b/discord/gateway.py
@@ -40,8 +40,8 @@ import struct
log = logging.getLogger(__name__)
-__all__ = [ 'DiscordWebSocket', 'KeepAliveHandler', 'VoiceKeepAliveHandler',
- 'DiscordVoiceWebSocket', 'ResumeWebSocket' ]
+__all__ = ['DiscordWebSocket', 'KeepAliveHandler', 'VoiceKeepAliveHandler',
+ 'DiscordVoiceWebSocket', 'ResumeWebSocket']
class ResumeWebSocket(Exception):
"""Signals to initialise via RESUME opcode instead of IDENTIFY."""
@@ -381,7 +381,7 @@ class DiscordWebSocket(websockets.client.WebSocketClientProtocol):
self.sequence = msg['s']
self.session_id = data['session_id']
log.info('Shard ID %s has connected to Gateway: %s (Session ID: %s).',
- self.shard_id, ', '.join(trace), self.session_id)
+ self.shard_id, ', '.join(trace), self.session_id)
if event == 'RESUMED':
self._trace = trace = data.get('_trace', [])
@@ -684,5 +684,3 @@ class DiscordVoiceWebSocket(websockets.client.WebSocketClientProtocol):
self._keep_alive.stop()
await super().close_connection(*args, **kwargs)
-
-