Removing duplicate variable declaration. Changed factory function defaults

master
androiddrew 7 years ago
parent a61e93ad82
commit fc05572202

@ -26,15 +26,12 @@ _settings = {
'RENDERERS': [JSONRenderer()] 'RENDERERS': [JSONRenderer()]
} }
routes = routes
commands = sqlalchemy_backend.commands commands = sqlalchemy_backend.commands
components = sqlalchemy_backend.components components = sqlalchemy_backend.components
def application_factory(settings={}): def application_factory(settings={}, _settings=_settings, routes=routes, commands=commands, components=components):
"""Returns an instance of Cookie API""" """Returns an instance of Cookie API"""
app_settings = {**_settings, **settings} app_settings = {**_settings, **settings}
return App(settings=app_settings, return App(settings=app_settings,

Loading…
Cancel
Save