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/cgitb_catcher.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'paste/cgitb_catcher.py') diff --git a/paste/cgitb_catcher.py b/paste/cgitb_catcher.py index 2679d81..55a346f 100644 --- a/paste/cgitb_catcher.py +++ b/paste/cgitb_catcher.py @@ -32,7 +32,7 @@ class CgitbMiddleware(object): global_conf = {} if display is NoDefault: display = global_conf.get('debug') - if isinstance(display, basestring): + if isinstance(display, six.string_types): display = converters.asbool(display) self.display = display self.logdir = logdir -- cgit v1.2.1