summaryrefslogtreecommitdiff
path: root/Lib/pydoc.py
diff options
context:
space:
mode:
authorBrian Curtin <brian.curtin@gmail.com>2010-03-31 03:10:21 +0000
committerBrian Curtin <brian.curtin@gmail.com>2010-03-31 03:10:21 +0000
commitaeb2e8295d74013662edf8ebba2a9aac24ee7d3c (patch)
treeda6899754c2f046efe219e934439e037b7bd6d3b /Lib/pydoc.py
parentb102ddadcbcaaf8fc50e5060e45b89a4d3a3a492 (diff)
downloadcpython-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-xLib/pydoc.py3
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: