[1.10.x] Removed usage of deprecated sphinx.util.compat.Directive.

Backport of cb16458c4f from master
This commit is contained in:
Tim Graham 2017-05-24 10:39:51 -04:00
parent 753acae9f2
commit d4112525e4
1 changed files with 2 additions and 2 deletions

View File

@ -6,13 +6,13 @@ import os
import re
from docutils import nodes
from docutils.parsers.rst import directives
from docutils.parsers.rst import Directive, directives
from sphinx import addnodes
from sphinx.builders.html import StandaloneHTMLBuilder
from sphinx.domains.std import Cmdoption
from sphinx.util.compat import Directive
from sphinx.util.console import bold
from sphinx.util.nodes import set_source_info
try:
from sphinx.writers.html import SmartyPantsHTMLTranslator as HTMLTranslator
except ImportError: # Sphinx 1.6+