summaryrefslogtreecommitdiff
path: root/paste/httpexceptions.py
diff options
context:
space:
mode:
authorianb <devnull@localhost>2005-12-13 22:14:23 +0000
committerianb <devnull@localhost>2005-12-13 22:14:23 +0000
commit79a180fe42ec19c008ea371c1f5b0f1d1a6c1500 (patch)
tree6490507547b9f2de9a1b6d0ad4677a5a6ddc88ad /paste/httpexceptions.py
parent69137a1f1bfea71fcaf755bd030574a0e1befa3b (diff)
downloadpaste-79a180fe42ec19c008ea371c1f5b0f1d1a6c1500.tar.gz
removed debug print; keep httpexceptions.middleware signature, which matches make_middleware not HTTPExceptionHandler
Diffstat (limited to 'paste/httpexceptions.py')
-rw-r--r--paste/httpexceptions.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/paste/httpexceptions.py b/paste/httpexceptions.py
index ebb67fe..17eab87 100644
--- a/paste/httpexceptions.py
+++ b/paste/httpexceptions.py
@@ -214,7 +214,6 @@ class HTTPException(Exception):
if isinstance(content, unicode):
content = content.encode('utf8')
headers['content_type'] += '; charset=utf8'
- print "all good", environ, start_response
start_response('%s %s' % (self.code, self.title),
headers.items(),
exc_info)
@@ -563,9 +562,9 @@ def middleware(*args, **kw):
import warnings
# deprecated 13 dec 2005
warnings.warn('httpexceptions.middleware is deprecated; use '
- 'HTTPExceptionHandler instead',
+ 'make_middleware or HTTPExceptionHandler instead',
DeprecationWarning, 1)
- return HTTPExceptionHandler(*args, **kw)
+ return make_middleware(*args, **kw)
def make_middleware(app, global_conf, warning_level=None):
"""