Browse Source

linter fixes #nolog

pull/1505/merge
Miguel Grinberg 2 weeks ago
parent
commit
383eeaf8a6
Failed to extract signature
  1. 4
      src/socketio/async_client.py
  2. 4
      src/socketio/base_manager.py
  3. 4
      src/socketio/client.py

4
src/socketio/async_client.py

@ -175,8 +175,8 @@ class AsyncClient(base_client.BaseClient):
if set(self.namespaces) != set(self.connection_namespaces): if set(self.namespaces) != set(self.connection_namespaces):
await self.disconnect() await self.disconnect()
raise exceptions.ConnectionError( raise exceptions.ConnectionError(
'One or more namespaces failed to connect: ' + 'One or more namespaces failed to connect: '
', '.join(self.failed_namespaces)) + ', '.join(self.failed_namespaces))
self.connected = True self.connected = True

4
src/socketio/base_manager.py

@ -33,8 +33,8 @@ class BaseManager:
Note that in a multi-server scenario this method only returns the Note that in a multi-server scenario this method only returns the
participants connect to the server in which the method is called. There participants connect to the server in which the method is called. There
is currently no functionality to assemble a complete list of users across is currently no functionality to assemble a complete list of users
multiple servers. across multiple servers.
""" """
ns = self.rooms.get(namespace, {}) ns = self.rooms.get(namespace, {})
if hasattr(room, '__len__') and not isinstance(room, str): if hasattr(room, '__len__') and not isinstance(room, str):

4
src/socketio/client.py

@ -168,8 +168,8 @@ class Client(base_client.BaseClient):
if set(self.namespaces) != set(self.connection_namespaces): if set(self.namespaces) != set(self.connection_namespaces):
self.disconnect() self.disconnect()
raise exceptions.ConnectionError( raise exceptions.ConnectionError(
'One or more namespaces failed to connect: ' + 'One or more namespaces failed to connect: '
', '.join(self.failed_namespaces)) + ', '.join(self.failed_namespaces))
self.connected = True self.connected = True

Loading…
Cancel
Save