summaryrefslogtreecommitdiff
path: root/paste/debug
diff options
context:
space:
mode:
authorianb <devnull@localhost>2005-12-21 18:43:53 +0000
committerianb <devnull@localhost>2005-12-21 18:43:53 +0000
commit79854f14c13bcc7ebdf41f8cac8dc032e261b411 (patch)
tree9af87a8efae3f3efca3cedb3f739bc8c05d55e20 /paste/debug
parent22bb95b9ee15156ce06b58d5d416d6077bb7ad78 (diff)
downloadpaste-79854f14c13bcc7ebdf41f8cac8dc032e261b411.tar.gz
Remove deprecated calls to wsgilib
Diffstat (limited to 'paste/debug')
-rw-r--r--paste/debug/prints.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/paste/debug/prints.py b/paste/debug/prints.py
index 973322e..a0f54c5 100644
--- a/paste/debug/prints.py
+++ b/paste/debug/prints.py
@@ -6,6 +6,7 @@ import re
import cgi
from paste.util import threadedprint
from paste import wsgilib
+from paste import response
from paste.deploy.converters import asbool
_threadedprint_installed = False
@@ -71,7 +72,7 @@ class PrintDebugMiddleware(object):
start_response(status, headers)
if not body:
body = 'An error occurred'
- content_type = wsgilib.header_value(headers, 'content-type')
+ content_type = response.header_value(headers, 'content-type')
if (not self.force_content_type and
(not content_type
or not content_type.startswith('text/html'))):
@@ -80,7 +81,7 @@ class PrintDebugMiddleware(object):
environ['wsgi.errors'].write(logged.getvalue())
start_response(status, headers)
return [body]
- wsgilib.remove_header(headers, 'content-length')
+ response.remove_header(headers, 'content-length')
body = self.add_log(body, logged.getvalue())
start_response(status, headers)
return [body]