summaryrefslogtreecommitdiff
path: root/paste/debug
diff options
context:
space:
mode:
authorCyril Roelandt <cyril.roelandt@enovance.com>2014-03-18 11:38:28 +0100
committerCyril Roelandt <cyril.roelandt@enovance.com>2014-03-18 11:38:28 +0100
commita1f64ed3c2d7942ea4b05636cd83eebf8728a183 (patch)
treee3b975b91ec124fcfdfc61fefb2253db74a26519 /paste/debug
parent4b3635c01d650058227767d2253e32e902cbbed1 (diff)
downloadpaste-a1f64ed3c2d7942ea4b05636cd83eebf8728a183.tar.gz
Python 3: Replace basestring with six.string_types
Diffstat (limited to 'paste/debug')
-rw-r--r--paste/debug/prints.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/paste/debug/prints.py b/paste/debug/prints.py
index d30fc8f..6cc3f7d 100644
--- a/paste/debug/prints.py
+++ b/paste/debug/prints.py
@@ -23,6 +23,7 @@ import cgi
from paste.util import threadedprint
from paste import wsgilib
from paste import response
+import six
import sys
_threadedprint_installed = False
@@ -71,7 +72,7 @@ class PrintDebugMiddleware(object):
# the entry point
self.app = app
self.force_content_type = force_content_type
- if isinstance(print_wsgi_errors, basestring):
+ if isinstance(print_wsgi_errors, six.string_types):
from paste.deploy.converters import asbool
print_wsgi_errors = asbool(print_wsgi_errors)
self.print_wsgi_errors = print_wsgi_errors