summaryrefslogtreecommitdiffstats
path: root/Lib/inspect.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2009-01-17 22:41:18 (GMT)
committerBenjamin Peterson <benjamin@python.org>2009-01-17 22:41:18 (GMT)
commitc4656004661da0064338b72a334d544a5977c60b (patch)
tree7c8a32973d3726c94c3cebed425070ae3c938257 /Lib/inspect.py
parent17c7cd8d02361a104aaff4de20b2beb524ae3f47 (diff)
downloadcpython-c4656004661da0064338b72a334d544a5977c60b.zip
cpython-c4656004661da0064338b72a334d544a5977c60b.tar.gz
cpython-c4656004661da0064338b72a334d544a5977c60b.tar.bz2
Merged revisions 68676 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r68676 | benjamin.peterson | 2009-01-17 16:27:54 -0600 (Sat, 17 Jan 2009) | 1 line fix inspect.isclass() on instances with a custom __getattr__ #1225107 ........
Diffstat (limited to 'Lib/inspect.py')
-rw-r--r--Lib/inspect.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/inspect.py b/Lib/inspect.py
index 45515fc..5436531 100644
--- a/Lib/inspect.py
+++ b/Lib/inspect.py
@@ -63,7 +63,7 @@ def isclass(object):
Class objects provide these attributes:
__doc__ documentation string
__module__ name of module in which this class was defined"""
- return isinstance(object, type) or hasattr(object, '__bases__')
+ return isinstance(object, type)
def ismethod(object):
"""Return true if the object is an instance method.