summaryrefslogtreecommitdiffstats
path: root/Lib/pydoc.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2007-04-11 19:24:50 (GMT)
committerGeorg Brandl <georg@python.org>2007-04-11 19:24:50 (GMT)
commit57b39e0916d741d9851ac875d8f443bfc6005def (patch)
tree582159ea9ac83512264eb4ecb442f4bf19e7712f /Lib/pydoc.py
parentb5ddcfd2a203336f3ba7bb1111cda462333c9e1f (diff)
downloadcpython-57b39e0916d741d9851ac875d8f443bfc6005def.zip
cpython-57b39e0916d741d9851ac875d8f443bfc6005def.tar.gz
cpython-57b39e0916d741d9851ac875d8f443bfc6005def.tar.bz2
Bug #1697782: remove all remaining code that uses types.InstanceType.
Diffstat (limited to 'Lib/pydoc.py')
-rwxr-xr-xLib/pydoc.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/Lib/pydoc.py b/Lib/pydoc.py
index a74b97b..9fca8c2 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):