mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-08 10:53:10 +00:00
[lint] Fix incorrect and inconsistent whitespace
Adjust whitespace to be consistent with the rest of the library.
This commit is contained in:
@ -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)
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user