##// END OF EJS Templates
hghave: replace relative import of docutils.core
Yuya Nishihara -
r28779:0970ebec default
parent child Browse files
Show More
@@ -267,8 +267,8 b' def has_git():'
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
General Comments 0
You need to be logged in to leave comments. Login now