diff options
author | Thomas Wouters <thomas@python.org> | 2007-02-03 21:49:06 (GMT) |
---|---|---|
committer | Thomas Wouters <thomas@python.org> | 2007-02-03 21:49:06 (GMT) |
commit | 08f00467b977325c55c99b160a29fd854597ccfe (patch) | |
tree | 598d476b767f3b006c33b3c44c1ed2dd41dcc824 /Lib/pydoc.py | |
parent | b213704f3cad4fc61c4117afe559454b02193e5b (diff) | |
download | cpython-08f00467b977325c55c99b160a29fd854597ccfe.zip cpython-08f00467b977325c55c99b160a29fd854597ccfe.tar.gz cpython-08f00467b977325c55c99b160a29fd854597ccfe.tar.bz2 |
- Fix conversion glitch in test_pyclbr, which caused a test to not fail
when it should.
- Remove unneeded classic-class support from pydoc (which would otherwise
cause test_pyclbr to fail.)
Diffstat (limited to 'Lib/pydoc.py')
-rwxr-xr-x | Lib/pydoc.py | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/Lib/pydoc.py b/Lib/pydoc.py index dd10334..c496d1d 100755 --- a/Lib/pydoc.py +++ b/Lib/pydoc.py @@ -1448,9 +1448,6 @@ def locate(path, forceload=0): text = TextDoc() html = HTMLDoc() -class _OldStyleClass: pass -_OLD_INSTANCE_TYPE = type(_OldStyleClass()) - def resolve(thing, forceload=0): """Given an object or a path to an object, get the object and its name.""" if isinstance(thing, str): @@ -1471,10 +1468,6 @@ def doc(thing, title='Python Library Documentation: %s', forceload=0): desc += ' in ' + name[:name.rfind('.')] elif module and module is not object: desc += ' in module ' + module.__name__ - if type(object) is _OLD_INSTANCE_TYPE: - # If the passed object is an instance of an old-style class, - # document its available methods instead of its value. - object = object.__class__ elif not (inspect.ismodule(object) or inspect.isclass(object) or inspect.isroutine(object) or |