mirror of https://github.com/django/django.git
Removed usage of deprecated sphinx.util.compat.Directive.
This commit is contained in:
parent
f370bfb108
commit
cb16458c4f
|
@ -6,13 +6,13 @@ import os
|
||||||
import re
|
import re
|
||||||
|
|
||||||
from docutils import nodes
|
from docutils import nodes
|
||||||
from docutils.parsers.rst import directives
|
from docutils.parsers.rst import Directive, directives
|
||||||
from sphinx import addnodes
|
from sphinx import addnodes
|
||||||
from sphinx.builders.html import StandaloneHTMLBuilder
|
from sphinx.builders.html import StandaloneHTMLBuilder
|
||||||
from sphinx.domains.std import Cmdoption
|
from sphinx.domains.std import Cmdoption
|
||||||
from sphinx.util.compat import Directive
|
|
||||||
from sphinx.util.console import bold
|
from sphinx.util.console import bold
|
||||||
from sphinx.util.nodes import set_source_info
|
from sphinx.util.nodes import set_source_info
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from sphinx.writers.html import SmartyPantsHTMLTranslator as HTMLTranslator
|
from sphinx.writers.html import SmartyPantsHTMLTranslator as HTMLTranslator
|
||||||
except ImportError: # Sphinx 1.6+
|
except ImportError: # Sphinx 1.6+
|
||||||
|
|
Loading…
Reference in New Issue