Mercurial > public > mercurial-scm > hg-stable
diff tests/hghave.py @ 28779:0970ebec29b4
hghave: replace relative import of docutils.core
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sun, 03 Apr 2016 19:47:29 +0900 |
parents | be13a0fb84e8 |
children | 08a686a4a0a2 |
line wrap: on
line diff
--- a/tests/hghave.py Sun Apr 03 20:12:59 2016 +0900 +++ b/tests/hghave.py Sun Apr 03 19:47:29 2016 +0900 @@ -267,8 +267,8 @@ @check("docutils", "Docutils text processing library") def has_docutils(): try: - from docutils.core import publish_cmdline - publish_cmdline # silence unused import + import docutils.core + docutils.core.publish_cmdline # silence unused import return True except ImportError: return False