Browse Source

Fix lint errors (indents)

pull/1288/head
mooomooo 1 year ago
parent
commit
99e40b836d
  1. 12
      src/socketio/base_server.py

12
src/socketio/base_server.py

@ -207,20 +207,20 @@ class BaseServer:
""" """
handler = None handler = None
if namespace in self.handlers and \ if namespace in self.handlers and \
event in self.handlers[namespace]: event in self.handlers[namespace]:
handler = self.handlers[namespace][event] handler = self.handlers[namespace][event]
elif namespace in self.handlers and \ elif namespace in self.handlers and \
event not in self.reserved_events and \ event not in self.reserved_events and \
'*' in self.handlers[namespace]: '*' in self.handlers[namespace]:
handler = self.handlers[namespace]['*'] handler = self.handlers[namespace]['*']
args = (event, *args) args = (event, *args)
elif '*' in self.handlers and \ elif '*' in self.handlers and \
event in self.handlers['*']: event in self.handlers['*']:
handler = self.handlers['*'][event] handler = self.handlers['*'][event]
args = (namespace, *args) args = (namespace, *args)
elif '*' in self.handlers and \ elif '*' in self.handlers and \
event not in self.reserved_events and \ event not in self.reserved_events and \
'*' in self.handlers['*']: '*' in self.handlers['*']:
handler = self.handlers['*']['*'] handler = self.handlers['*']['*']
args = (event, namespace, *args) args = (event, namespace, *args)
else: else:

Loading…
Cancel
Save