summaryrefslogtreecommitdiffstats
path: root/Lib/inspect.py
diff options
context:
space:
mode:
authorMichael Foord <fuzzyman@voidspace.org.uk>2010-11-20 16:20:16 (GMT)
committerMichael Foord <fuzzyman@voidspace.org.uk>2010-11-20 16:20:16 (GMT)
commitcc7ebb8f69b84bc48ab2bcccf4f7a30f5e7479d2 (patch)
treede155ac9a70ceeec0386984932c26ea0a37f6f68 /Lib/inspect.py
parent45ec42615725d2c854f3cc04d73fb72017138d54 (diff)
downloadcpython-cc7ebb8f69b84bc48ab2bcccf4f7a30f5e7479d2.zip
cpython-cc7ebb8f69b84bc48ab2bcccf4f7a30f5e7479d2.tar.gz
cpython-cc7ebb8f69b84bc48ab2bcccf4f7a30f5e7479d2.tar.bz2
Issue 9732: remove use of __class__ in inspect.getattr_static and note the mro exception to code execution
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 57d8c72..97e99aa 100644
--- a/Lib/inspect.py
+++ b/Lib/inspect.py
@@ -1092,7 +1092,7 @@ def getattr_static(obj, attr, default=_sentinel):
instance_result = _sentinel
if not isinstance(obj, type):
instance_result = _check_instance(obj, attr)
- klass = obj.__class__
+ klass = type(obj)
else:
klass = obj