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

@ -1433,8 +1433,6 @@ def describe(thing):
return 'function ' + thing.__name__
if inspect.ismethod(thing):
return 'method ' + thing.__name__
if type(thing) is types.InstanceType:
return 'instance of ' + thing.__class__.__name__
return type(thing).__name__
def locate(path, forceload=0):