##// END OF EJS Templates
No need to check Sphinx version for Directive import from docutils
jfbu -
Show More
@@ -138,12 +138,6 b' from io import StringIO'
138
138
139 # Third-party
139 # Third-party
140 from docutils.parsers.rst import directives
140 from docutils.parsers.rst import directives
141 import sphinx
142 # sphinx.version_info available since 1.2, and we require 1.3
143 # sphinx.util.compat deprecated at 1.6 and removed at 1.7
144 if sphinx.version_info < (1, 5, 7):
145 from sphinx.util.compat import Directive
146 else:
147 from docutils.parsers.rst import Directive
141 from docutils.parsers.rst import Directive
148
142
149 # Our own
143 # Our own
General Comments 0
You need to be logged in to leave comments. Login now