aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/monkey.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2016-09-09 13:04:26 -0400
committerJason R. Coombs <jaraco@jaraco.com>2016-09-09 13:04:26 -0400
commitb700b3611d39d28a64973ec6abd006fc75af5df0 (patch)
tree39defbface8bf058ad0dcac104c7048615d1a70f /setuptools/monkey.py
parent2a7a7179ca18b1c97e435726e62c3ab0227fb20e (diff)
downloadexternal_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.py3
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
)