Fix a test_pydoc failure on Neal Norwitz's buildbot.
This commit is contained in:
parent
6c9fc4cf2b
commit
a01da93d85
|
@ -357,7 +357,7 @@ 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')))) and
|
not file.startswith(os.path.join(basedir, 'site-packages')))) and
|
||||||
object.__name__ != 'xml.etree'):
|
object.__name__ not in ('xml.etree', 'test.pydoc_mod')):
|
||||||
if docloc.startswith("http://"):
|
if docloc.startswith("http://"):
|
||||||
docloc = "%s/%s" % (docloc.rstrip("/"), object.__name__)
|
docloc = "%s/%s" % (docloc.rstrip("/"), object.__name__)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue