Show More
@@ -138,7 +138,13 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 | from sphinx.util.compat import Directive |
|
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 | |||
142 |
|
148 | |||
143 | # Our own |
|
149 | # Our own | |
144 | from traitlets.config import Config |
|
150 | from traitlets.config import Config |
General Comments 0
You need to be logged in to leave comments.
Login now