diff options
author | Brian Curtin <brian.curtin@gmail.com> | 2010-03-31 03:10:21 +0000 |
---|---|---|
committer | Brian Curtin <brian.curtin@gmail.com> | 2010-03-31 03:10:21 +0000 |
commit | aeb2e8295d74013662edf8ebba2a9aac24ee7d3c (patch) | |
tree | da6899754c2f046efe219e934439e037b7bd6d3b /Lib/pydoc.py | |
parent | b102ddadcbcaaf8fc50e5060e45b89a4d3a3a492 (diff) | |
download | cpython-git-aeb2e8295d74013662edf8ebba2a9aac24ee7d3c.tar.gz |
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 7a55023319..2c954de3b4 100755 --- a/Lib/pydoc.py +++ b/Lib/pydoc.py @@ -356,7 +356,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: |