mirror of https://github.com/python/cpython
bpo-32031: Fix pydoc `test_mixed_case_module_names_are_lower_cased` (GH-4441)
When there is a symlink in the directory path of the standard library.
This commit is contained in:
parent
d34d8fc24f
commit
ebfaa71c2e
|
@ -357,7 +357,7 @@ def get_pydoc_html(module):
|
|||
def get_pydoc_link(module):
|
||||
"Returns a documentation web link of a module"
|
||||
dirname = os.path.dirname
|
||||
basedir = dirname(dirname(os.path.realpath(__file__)))
|
||||
basedir = dirname(dirname(__file__))
|
||||
doc = pydoc.TextDoc()
|
||||
loc = doc.getdocloc(module, basedir=basedir)
|
||||
return loc
|
||||
|
|
Loading…
Reference in New Issue