diff options
-rwxr-xr-x | Lib/pydoc.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/pydoc.py b/Lib/pydoc.py index e6b53c1..4d89850 100755 --- a/Lib/pydoc.py +++ b/Lib/pydoc.py @@ -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 |