diff options
author | Cyril Roelandt <cyril.roelandt@enovance.com> | 2014-03-18 11:38:28 +0100 |
---|---|---|
committer | Cyril Roelandt <cyril.roelandt@enovance.com> | 2014-03-18 11:38:28 +0100 |
commit | a1f64ed3c2d7942ea4b05636cd83eebf8728a183 (patch) | |
tree | e3b975b91ec124fcfdfc61fefb2253db74a26519 /paste/exceptions | |
parent | 4b3635c01d650058227767d2253e32e902cbbed1 (diff) | |
download | paste-a1f64ed3c2d7942ea4b05636cd83eebf8728a183.tar.gz |
Python 3: Replace basestring with six.string_types
Diffstat (limited to 'paste/exceptions')
-rw-r--r-- | paste/exceptions/formatter.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/paste/exceptions/formatter.py b/paste/exceptions/formatter.py index a613479..7fa5e7d 100644 --- a/paste/exceptions/formatter.py +++ b/paste/exceptions/formatter.py @@ -8,6 +8,7 @@ Formatters for the exception data that comes from ExceptionCollector. # Use this: http://www.zope.org/Members/tino/VisualTraceback/VisualTracebackNews import cgi +import six import re from paste.util import PySourceColor @@ -76,7 +77,7 @@ class AbstractFormatter(object): lines.append(self.format_long_source( source, long_source)) etype = exc_data.exception_type - if not isinstance(etype, basestring): + if not isinstance(etype, six.string_types): etype = etype.__name__ exc_info = self.format_exception_info( etype, |