summaryrefslogtreecommitdiffstats
path: root/Lib/pydoc.py
diff options
context:
space:
mode:
authorAmaury Forgeot d'Arc <amauryfa@gmail.com>2008-04-24 21:00:04 (GMT)
committerAmaury Forgeot d'Arc <amauryfa@gmail.com>2008-04-24 21:00:04 (GMT)
commit768db92b438038586c1580b711c528363a97d3f4 (patch)
tree5e026f60d9c50d4936ebef4345201c559ba887ad /Lib/pydoc.py
parent8c03b4de9db8dfaccc93916af61baf6ff4f1c9b2 (diff)
downloadcpython-768db92b438038586c1580b711c528363a97d3f4.zip
cpython-768db92b438038586c1580b711c528363a97d3f4.tar.gz
cpython-768db92b438038586c1580b711c528363a97d3f4.tar.bz2
Correct recently merged tests:
- two bugs in pydoc.py - remove test about classic classes
Diffstat (limited to 'Lib/pydoc.py')
-rwxr-xr-xLib/pydoc.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/Lib/pydoc.py b/Lib/pydoc.py
index fbad574..31122e1 100755
--- a/Lib/pydoc.py
+++ b/Lib/pydoc.py
@@ -1,5 +1,5 @@
#!/usr/bin/env python
-# -*- coding: Latin-1 -*-
+# -*- coding: latin-1 -*-
"""Generate Python documentation in HTML or text for interactive use.
In the Python interpreter, do "from pydoc import help" to provide online
@@ -1074,7 +1074,7 @@ class TextDoc(Doc):
if submodules:
submodules.sort()
result = result + self.section(
- 'SUBMODULES', join(submodules, '\n'))
+ 'SUBMODULES', '\n'.join(submodules))
if classes:
classlist = [value for key, value in classes]
@@ -1484,7 +1484,8 @@ def render_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__
- elif not (inspect.ismodule(object) or
+
+ if not (inspect.ismodule(object) or
inspect.isclass(object) or
inspect.isroutine(object) or
inspect.isgetsetdescriptor(object) or