Bug #1697782: remove all remaining code that uses types.InstanceType.

This commit is contained in:
Georg Brandl 2007-04-11 19:24:50 +00:00
parent b5ddcfd2a2
commit 57b39e0916
8 changed files with 10 additions and 38 deletions

View file

@ -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)