mirror of
https://github.com/python/cpython.git
synced 2025-08-22 17:55:18 +00:00
Bug #1697782: remove all remaining code that uses types.InstanceType.
This commit is contained in:
parent
b5ddcfd2a2
commit
57b39e0916
8 changed files with 10 additions and 38 deletions
|
@ -574,8 +574,6 @@ def _getmethods(obj, methods):
|
|||
attr = getattr(obj, name)
|
||||
if callable(attr):
|
||||
methods[name] = 1
|
||||
if type(obj) == types.InstanceType:
|
||||
_getmethods(obj.__class__, methods)
|
||||
if type(obj) == types.ClassType:
|
||||
for super in obj.__bases__:
|
||||
_getmethods(super, methods)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue