summaryrefslogtreecommitdiff
path: root/paste/urlmap.py
diff options
context:
space:
mode:
authorianb <devnull@localhost>2005-12-13 08:20:25 +0000
committerianb <devnull@localhost>2005-12-13 08:20:25 +0000
commite6d3daa93b95a5597575eb466b3a580ff26bb810 (patch)
tree05787b6102f93677179ac7ba3e8651b1fe56b063 /paste/urlmap.py
parentac8b22aed75bc39964804e790aecea870862d23e (diff)
downloadpaste-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.py7
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):