mirror of
https://github.com/python/cpython.git
synced 2025-08-08 10:58:51 +00:00
[3.12] gh-108303: Move all pydoc
related files to test_pydoc
(GH-114506) (#115502)
(cherry picked from commit ccc76c3e88
)
This commit is contained in:
parent
0e4f73b8e4
commit
9bc32cdc36
7 changed files with 32 additions and 25 deletions
|
@ -529,7 +529,7 @@ class Doc:
|
|||
'_thread', 'zipimport') or
|
||||
(file.startswith(basedir) and
|
||||
not file.startswith(os.path.join(basedir, 'site-packages')))) and
|
||||
object.__name__ not in ('xml.etree', 'test.pydoc_mod')):
|
||||
object.__name__ not in ('xml.etree', 'test.test_pydoc.pydoc_mod')):
|
||||
if docloc.startswith(("http://", "https://")):
|
||||
docloc = "{}/{}.html".format(docloc.rstrip("/"), object.__name__.lower())
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue