mirror of
https://github.com/python/cpython.git
synced 2025-07-28 05:34:31 +00:00
Fix #8225. xml.etree was displaying an incorrect link when viewed in help.
This commit is contained in:
parent
b102ddadcb
commit
aeb2e8295d
2 changed files with 8 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue