From a1f64ed3c2d7942ea4b05636cd83eebf8728a183 Mon Sep 17 00:00:00 2001 From: Cyril Roelandt Date: Tue, 18 Mar 2014 11:38:28 +0100 Subject: Python 3: Replace basestring with six.string_types --- paste/debug/prints.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'paste/debug') 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 -- cgit v1.2.1