diff options
author | Brian Curtin <brian.curtin@gmail.com> | 2010-03-31 03:19:28 (GMT) |
---|---|---|
committer | Brian Curtin <brian.curtin@gmail.com> | 2010-03-31 03:19:28 (GMT) |
commit | 49c284c17459a9f8e2bd2be64042fc9fb01d9822 (patch) | |
tree | e6e789fa90c24f68f227f8d583108d33ae7e141d /Lib/pydoc.py | |
parent | d6995eb58214b1395814e05f127b7ec9294e39b2 (diff) | |
download | cpython-49c284c17459a9f8e2bd2be64042fc9fb01d9822.zip cpython-49c284c17459a9f8e2bd2be64042fc9fb01d9822.tar.gz cpython-49c284c17459a9f8e2bd2be64042fc9fb01d9822.tar.bz2 |
Merged revisions 79518 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r79518 | brian.curtin | 2010-03-30 22:10:21 -0500 (Tue, 30 Mar 2010) | 2 lines
Fix #8225. xml.etree was displaying an incorrect link when viewed in help.
........
Diffstat (limited to 'Lib/pydoc.py')
-rwxr-xr-x | Lib/pydoc.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/pydoc.py b/Lib/pydoc.py index 4a8017e..62ca3b0 100755 --- a/Lib/pydoc.py +++ b/Lib/pydoc.py @@ -349,7 +349,8 @@ class Doc: 'marshal', 'posix', 'signal', 'sys', '_thread', 'zipimport') or (file.startswith(basedir) and - not file.startswith(os.path.join(basedir, 'site-packages'))))): + not file.startswith(os.path.join(basedir, 'site-packages')))) and + object.__name__ not in ('xml.etree')): if docloc.startswith("http://"): docloc = "%s/%s" % (docloc.rstrip("/"), object.__name__) else: |