Commit f2134842 authored by Skip Montanaro's avatar Skip Montanaro

correct name error caught by Neal Norwitz with pychecker

parent 5dae505b
......@@ -322,11 +322,11 @@ class Doc:
'thread', 'zipimport') or
(file.startswith(basedir) and
not file.startswith(os.path.join(basedir, 'site-packages'))))):
htmlfile = "module-%s.html" % object.__name__
if docloc.startswith("http://"):
docloc = (docloc.rstrip("/") +
"/module-%s.html" % object.__name__)
docloc = "%s/%s" % (docloc.rstrip("/"), htmlfile)
else:
docloc = os.path.join(docloc, "module-%s.html" % name)
docloc = os.path.join(docloc, htmlfile)
else:
docloc = None
return docloc
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment