# HG changeset patch # User Yuya Nishihara # Date 1459680449 -32400 # Node ID 0970ebec29b4304d36b7fd5c558a4d52aa03c26d # Parent 256d90bb12fa7b12bff1fef1e07073759f7a5115 hghave: replace relative import of docutils.core diff -r 256d90bb12fa -r 0970ebec29b4 tests/hghave.py --- 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