From a38fdbc28bfc7d4a1824475775b9fadc3da51290 Mon Sep 17 00:00:00 2001 From: Robert Schindler Date: Sun, 21 Aug 2016 15:08:55 +0200 Subject: [PATCH] Unified indentation --- socketio/namespace.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/socketio/namespace.py b/socketio/namespace.py index 5a2b49d..af4920b 100644 --- a/socketio/namespace.py +++ b/socketio/namespace.py @@ -48,9 +48,10 @@ class Namespace(object): setattr(self, func_name, get_wrapped_method(func_name)) def _get_handlers(self): - """Returns a dict of event names and handlers this namespace provides.""" - handlers = {} - for attr_name in dir(self): - if attr_name.startswith('on_'): - handlers[attr_name[3:]] = getattr(self, attr_name) - return handlers + """Returns a dict of event names and handlers this namespace + provides.""" + handlers = {} + for attr_name in dir(self): + if attr_name.startswith('on_'): + handlers[attr_name[3:]] = getattr(self, attr_name) + return handlers