mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
correct name error caught by Neal Norwitz with pychecker
This commit is contained in:
parent
5dae505bbd
commit
f2134842b4
1 changed files with 3 additions and 3 deletions
|
@ -322,11 +322,11 @@ class Doc:
|
||||||
'thread', 'zipimport') or
|
'thread', 'zipimport') or
|
||||||
(file.startswith(basedir) and
|
(file.startswith(basedir) and
|
||||||
not file.startswith(os.path.join(basedir, 'site-packages'))))):
|
not file.startswith(os.path.join(basedir, 'site-packages'))))):
|
||||||
|
htmlfile = "module-%s.html" % object.__name__
|
||||||
if docloc.startswith("http://"):
|
if docloc.startswith("http://"):
|
||||||
docloc = (docloc.rstrip("/") +
|
docloc = "%s/%s" % (docloc.rstrip("/"), htmlfile)
|
||||||
"/module-%s.html" % object.__name__)
|
|
||||||
else:
|
else:
|
||||||
docloc = os.path.join(docloc, "module-%s.html" % name)
|
docloc = os.path.join(docloc, htmlfile)
|
||||||
else:
|
else:
|
||||||
docloc = None
|
docloc = None
|
||||||
return docloc
|
return docloc
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue