From 57b39e0916d741d9851ac875d8f443bfc6005def Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Wed, 11 Apr 2007 19:24:50 +0000 Subject: Bug #1697782: remove all remaining code that uses types.InstanceType. --- Lib/pydoc.py | 2 -- 1 file changed, 2 deletions(-) (limited to 'Lib/pydoc.py') diff --git a/Lib/pydoc.py b/Lib/pydoc.py index a74b97b4d0..9fca8c268b 100755 --- a/Lib/pydoc.py +++ b/Lib/pydoc.py @@ -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): -- cgit v1.2.1