commit | cc7ebb8f69b84bc48ab2bcccf4f7a30f5e7479d2 | [log] [tgz] |
---|---|---|
author | Michael Foord <fuzzyman@voidspace.org.uk> | Sat Nov 20 16:20:16 2010 +0000 |
committer | Michael Foord <fuzzyman@voidspace.org.uk> | Sat Nov 20 16:20:16 2010 +0000 |
tree | de155ac9a70ceeec0386984932c26ea0a37f6f68 | |
parent | 45ec42615725d2c854f3cc04d73fb72017138d54 [diff] [blame] |
Issue 9732: remove use of __class__ in inspect.getattr_static and note the mro exception to code execution
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 @@ instance_result = _sentinel if not isinstance(obj, type): instance_result = _check_instance(obj, attr) - klass = obj.__class__ + klass = type(obj) else: klass = obj