summaryrefslogtreecommitdiff
path: root/paste/urlparser.py
diff options
context:
space:
mode:
authorIan Bicking <ianb@colorstudy.com>2010-03-31 14:13:13 -0500
committerIan Bicking <ianb@colorstudy.com>2010-03-31 14:13:13 -0500
commitec6061009bc4ba8f48580d407df5f81b64ff071e (patch)
tree8201f724252698ffc65e75583b376ae551b5f69d /paste/urlparser.py
parent6bc629d36af3c9827f7d0fb34c17cccdbb9feec9 (diff)
downloadpaste-ec6061009bc4ba8f48580d407df5f81b64ff071e.tar.gz
remove directory name from 404 errors
Diffstat (limited to 'paste/urlparser.py')
-rw-r--r--paste/urlparser.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/paste/urlparser.py b/paste/urlparser.py
index f72355a..a7469e3 100644
--- a/paste/urlparser.py
+++ b/paste/urlparser.py
@@ -215,9 +215,7 @@ class URLParser(object):
exc = httpexceptions.HTTPNotFound(
'The resource at %s could not be found'
% request.construct_url(environ),
- comment='SCRIPT_NAME=%r; PATH_INFO=%r; looking in %r; debug: %s'
- % (environ.get('SCRIPT_NAME'), environ.get('PATH_INFO'),
- self.directory, debug_message or '(none)'))
+ comment=debug_message)
return exc.wsgi_application(environ, start_response)
def add_slash(self, environ, start_response):
@@ -638,4 +636,3 @@ def make_url_parser(global_conf, directory, base_python_name,
hide_extensions=hide_extensions,
ignore_extensions=ignore_extensions,
**constructor_conf)
-