diff options
| author | Barry Warsaw | 2014-08-14 14:23:14 -0400 |
|---|---|---|
| committer | Barry Warsaw | 2014-08-14 14:23:14 -0400 |
| commit | 0afbc268937456769714971a7f1f00141d21f223 (patch) | |
| tree | 55d941d6a7048405da86216d86d386faae2b16c0 /src/mailman/rest/wsgiapp.py | |
| parent | 4236657a07af91b1a247ca3fecc3838a875d127f (diff) | |
| download | mailman-0afbc268937456769714971a7f1f00141d21f223.tar.gz mailman-0afbc268937456769714971a7f1f00141d21f223.tar.zst mailman-0afbc268937456769714971a7f1f00141d21f223.zip | |
Diffstat (limited to 'src/mailman/rest/wsgiapp.py')
| -rw-r--r-- | src/mailman/rest/wsgiapp.py | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/mailman/rest/wsgiapp.py b/src/mailman/rest/wsgiapp.py index 341a4cbb4..98239ec51 100644 --- a/src/mailman/rest/wsgiapp.py +++ b/src/mailman/rest/wsgiapp.py @@ -27,18 +27,16 @@ __all__ = [ import re -import falcon import logging from falcon import API from falcon.api_helpers import create_http_method_map - -from wsgiref.simple_server import WSGIRequestHandler -from wsgiref.simple_server import make_server as wsgi_server - +from falcon.responders import path_not_found from mailman.config import config from mailman.database.transaction import transactional from mailman.rest.root import Root +from wsgiref.simple_server import WSGIRequestHandler +from wsgiref.simple_server import make_server as wsgi_server log = logging.getLogger('mailman.http') @@ -148,7 +146,7 @@ class RootedAPI(API): else: # None of the attributes matched this path component, so the # response is a 404. - return falcon.responders.path_not_found, {}, None + return path_not_found, {}, None |
