fix(cgi): remove redundant function
This commit is contained in:
parent
c506cec36a
commit
843354e18d
3 changed files with 6 additions and 6 deletions
|
|
@ -2,9 +2,9 @@
|
||||||
"""httpaste CGI entrypoint
|
"""httpaste CGI entrypoint
|
||||||
"""
|
"""
|
||||||
from wsgiref.handlers import CGIHandler
|
from wsgiref.handlers import CGIHandler
|
||||||
from httpaste import load_config, get_flask_app, get_config_path
|
from httpaste import load_config, get_flask_app
|
||||||
|
|
||||||
config, server_config = load_config(get_config_path())
|
config, server_config = load_config()
|
||||||
|
|
||||||
application = get_flask_app(config, server_config)
|
application = get_flask_app(config, server_config)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,9 +2,9 @@
|
||||||
"""httpaste FastCGI entrypoint
|
"""httpaste FastCGI entrypoint
|
||||||
"""
|
"""
|
||||||
from flup.server.fcgi import WSGIServer
|
from flup.server.fcgi import WSGIServer
|
||||||
from httpaste import load_config, get_flask_app, get_config_path
|
from httpaste import load_config, get_flask_app
|
||||||
|
|
||||||
config, server_config = load_config(get_config_path())
|
config, server_config = load_config()
|
||||||
|
|
||||||
application = get_flask_app(config, server_config)
|
application = get_flask_app(config, server_config)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
"""httpaste WSGI entrypoint
|
"""httpaste WSGI entrypoint
|
||||||
"""
|
"""
|
||||||
from httpaste import load_config, get_flask_app, get_config_path
|
from httpaste import load_config, get_flask_app
|
||||||
|
|
||||||
config, server_config = load_config(get_config_path())
|
config, server_config = load_config()
|
||||||
|
|
||||||
application = get_flask_app(config, server_config)
|
application = get_flask_app(config, server_config)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue