diff options
author | Cyril Roelandt <cyril.roelandt@enovance.com> | 2014-03-18 12:01:37 +0100 |
---|---|---|
committer | Cyril Roelandt <cyril.roelandt@enovance.com> | 2014-03-18 12:01:37 +0100 |
commit | bc2d48c473952247fe26c7058cb1a8ec746ff1d8 (patch) | |
tree | 0b2bcb7961a339c553c4760b8ce8fdba96de4768 /paste/httpexceptions.py | |
parent | 4befe65b5410583cb069e0234d11eda4718719e4 (diff) | |
download | paste-bc2d48c473952247fe26c7058cb1a8ec746ff1d8.tar.gz |
Python 3: Replace types.ClassType with six.class_types
Diffstat (limited to 'paste/httpexceptions.py')
-rw-r--r-- | paste/httpexceptions.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/paste/httpexceptions.py b/paste/httpexceptions.py index af60627..2c0c020 100644 --- a/paste/httpexceptions.py +++ b/paste/httpexceptions.py @@ -74,7 +74,6 @@ References: """ import six -import types from paste.wsgilib import catch_errors_app from paste.response import has_header, header_value, replace_header from paste.request import resolve_relative_url @@ -589,7 +588,7 @@ __all__ = ['HTTPException', 'HTTPRedirection', 'HTTPError' ] _exceptions = {} for name, value in six.iteritems(globals()): - if (isinstance(value, (type, types.ClassType)) and + if (isinstance(value, (type, six.class_types)) and issubclass(value, HTTPException) and value.code): _exceptions[value.code] = value |