From c8b49d37be8c4aabb2d5896708f9dff91ffae368 Mon Sep 17 00:00:00 2001 From: Hornwitser Date: Fri, 22 Jun 2018 16:08:27 +0200 Subject: [lint] Fix incorrect and inconsistent whitespace Adjust whitespace to be consistent with the rest of the library. --- discord/gateway.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'discord/gateway.py') 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) - - -- cgit v1.2.3