diff options
author | Bruno Wagner <bwagner@thoughtworks.com> | 2014-10-27 15:04:41 +0100 |
---|---|---|
committer | Bruno Wagner <bwagner@thoughtworks.com> | 2014-10-27 15:04:41 +0100 |
commit | db5846589643e2a4fe05be3e1b90a6b541290d6d (patch) | |
tree | c9ef5c873930df9c1e28739b21736a022418d05a | |
parent | 5636572f391de8cbd37d6f7322fd279d241862bd (diff) |
Fixed pep8
-rw-r--r-- | service/pixelated/runserver.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/service/pixelated/runserver.py b/service/pixelated/runserver.py index ac3dee94..13ccd40f 100644 --- a/service/pixelated/runserver.py +++ b/service/pixelated/runserver.py @@ -56,6 +56,7 @@ def register(username, server_name): except LeapAuthException: print('User already exists') + def setup_debugger(enabled): debug_enabled = enabled or os.environ.get('DEBUG', False) if not debug_enabled: @@ -63,6 +64,7 @@ def setup_debugger(enabled): logger = logging.getLogger('werkzeug') logger.setLevel(logging.INFO) + def configuration_setup(app, config): if config is not None: config_file = os.path.abspath(os.path.expanduser(config)) @@ -73,6 +75,7 @@ def configuration_setup(app, config): app.config['LEAP_USERNAME'] = user app.config['LEAP_PASSWORD'] = password + def start_services(app, debug): reactor_manager.start_reactor(logging=debug) events_server.ensure_server(port=8090) |