# HG changeset patch # User Yuya Nishihara # Date 2016-04-03 10:47:29 # Node ID 0970ebec29b4304d36b7fd5c558a4d52aa03c26d # Parent 256d90bb12fa7b12bff1fef1e07073759f7a5115 hghave: replace relative import of docutils.core diff --git a/tests/hghave.py b/tests/hghave.py --- a/tests/hghave.py +++ b/tests/hghave.py @@ -267,8 +267,8 @@ def has_git(): @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