Mercurial > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
28778:256d90bb12fa | 28779:0970ebec29b4 |
---|---|
265 return matchoutput('git --version 2>&1', r'^git version') | 265 return matchoutput('git --version 2>&1', r'^git version') |
266 | 266 |
267 @check("docutils", "Docutils text processing library") | 267 @check("docutils", "Docutils text processing library") |
268 def has_docutils(): | 268 def has_docutils(): |
269 try: | 269 try: |
270 from docutils.core import publish_cmdline | 270 import docutils.core |
271 publish_cmdline # silence unused import | 271 docutils.core.publish_cmdline # silence unused import |
272 return True | 272 return True |
273 except ImportError: | 273 except ImportError: |
274 return False | 274 return False |
275 | 275 |
276 def getsvnversion(): | 276 def getsvnversion(): |