diff options
author | ianb <devnull@localhost> | 2005-12-13 08:20:25 +0000 |
---|---|---|
committer | ianb <devnull@localhost> | 2005-12-13 08:20:25 +0000 |
commit | e6d3daa93b95a5597575eb466b3a580ff26bb810 (patch) | |
tree | 05787b6102f93677179ac7ba3e8651b1fe56b063 /paste/urlmap.py | |
parent | ac8b22aed75bc39964804e790aecea870862d23e (diff) | |
download | paste-e6d3daa93b95a5597575eb466b3a580ff26bb810.tar.gz |
Deprecate the wsgilib.error_response functions; stop using them internally as well, in preference of httpexceptions.*.wsgi_application
Diffstat (limited to 'paste/urlmap.py')
-rw-r--r-- | paste/urlmap.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/paste/urlmap.py b/paste/urlmap.py index 61bba6d..e480848 100644 --- a/paste/urlmap.py +++ b/paste/urlmap.py @@ -4,6 +4,7 @@ from UserDict import DictMixin import re import os +import httpexceptions import wsgilib __all__ = ['URLMap', 'PathProxyURLMap'] @@ -55,9 +56,9 @@ class URLMap(DictMixin): extra = '' extra += '\nSCRIPT_NAME: %r' % environ.get('SCRIPT_NAME') extra += '\nPATH_INFO: %r' % environ.get('PATH_INFO') - app = wsgilib.error_response_app( - '404 Not Found', 'The resource was not found\n<!-- %s -->' - % extra) + app = httpexceptions.HTTPNotFound( + 'The resource was not found', + comment=extra).wsgi_application return app(environ, start_response) def normalize_url(self, url, trim=True): |