Mercurial > hg
changeset 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 | 256d90bb12fa |
children | faff8c2b5ee3 |
files | tests/hghave.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
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