Merge topic 'MakeDocsWorkWithDocutilsBefore0_11'
fb107d8
Help: Fix Sphinx extension with docutils < 0.11
This commit is contained in:
commit
e73d1ad003
|
@ -14,7 +14,12 @@ import re
|
|||
|
||||
from docutils.parsers.rst import Directive, directives
|
||||
from docutils.transforms import Transform
|
||||
from docutils.utils.error_reporting import SafeString, ErrorString
|
||||
try:
|
||||
from docutils.utils.error_reporting import SafeString, ErrorString
|
||||
except ImportError:
|
||||
# error_reporting was not in utils before version 0.11:
|
||||
from docutils.error_reporting import SafeString, ErrorString
|
||||
|
||||
from docutils import io, nodes
|
||||
|
||||
from sphinx.directives import ObjectDescription
|
||||
|
|
Loading…
Reference in New Issue