mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Issue #16484: Merge pydoc Windows fixes from 3.5
This commit is contained in:
commit
5285545271
3 changed files with 8 additions and 3 deletions
|
@ -356,7 +356,7 @@ def get_pydoc_html(module):
|
|||
def get_pydoc_link(module):
|
||||
"Returns a documentation web link of a module"
|
||||
dirname = os.path.dirname
|
||||
basedir = os.path.join(dirname(dirname(__file__)))
|
||||
basedir = dirname(dirname(__file__))
|
||||
doc = pydoc.TextDoc()
|
||||
loc = doc.getdocloc(module, basedir=basedir)
|
||||
return loc
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue