Issue #16484: Fix pydoc link and test on Windows, by Kaushik Nadikuditi

This commit is contained in:
Martin Panter 2016-06-12 04:24:06 +00:00
parent 0c0da48aed
commit 4f8aaf6440
3 changed files with 8 additions and 3 deletions

View file

@ -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