diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2016-09-09 13:04:26 -0400 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2016-09-09 13:04:26 -0400 |
commit | b700b3611d39d28a64973ec6abd006fc75af5df0 (patch) | |
tree | 39defbface8bf058ad0dcac104c7048615d1a70f /setuptools/monkey.py | |
parent | 2a7a7179ca18b1c97e435726e62c3ab0227fb20e (diff) | |
download | external_python_setuptools-b700b3611d39d28a64973ec6abd006fc75af5df0.tar.gz external_python_setuptools-b700b3611d39d28a64973ec6abd006fc75af5df0.tar.bz2 external_python_setuptools-b700b3611d39d28a64973ec6abd006fc75af5df0.zip |
Account for the class might be old style on Python 2.
Diffstat (limited to 'setuptools/monkey.py')
-rw-r--r-- | setuptools/monkey.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/setuptools/monkey.py b/setuptools/monkey.py index c9a52c61..c4289762 100644 --- a/setuptools/monkey.py +++ b/setuptools/monkey.py @@ -8,6 +8,7 @@ import platform import types from .py26compat import import_module +from setuptools.extern import six import setuptools @@ -21,7 +22,7 @@ if you think you need this functionality. def get_unpatched(item): lookup = ( - get_unpatched_class if isinstance(item, type) else + get_unpatched_class if isinstance(item, six.class_types) else get_unpatched_function if isinstance(item, types.FunctionType) else lambda item: None ) |