summaryrefslogtreecommitdiffstats
path: root/Doc/tools
diff options
context:
space:
mode:
authorNed Deily <nad@python.org>2017-07-15 19:28:02 (GMT)
committerGitHub <noreply@github.com>2017-07-15 19:28:02 (GMT)
commit50f58163a69abe2f35e91044d1df165ee7bdbb42 (patch)
tree4e709f92ce428adbfcd2bfb6cd1ec0c74b841402 /Doc/tools
parentf0b6a261bb8cbede42296e0cc70956fb3b9a6cf7 (diff)
downloadcpython-50f58163a69abe2f35e91044d1df165ee7bdbb42.zip
cpython-50f58163a69abe2f35e91044d1df165ee7bdbb42.tar.gz
cpython-50f58163a69abe2f35e91044d1df165ee7bdbb42.tar.bz2
bpo-30939: Avoid Sphinx deprecation warning in docs build. (#2721)
Diffstat (limited to 'Doc/tools')
-rw-r--r--Doc/tools/extensions/pyspecific.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/tools/extensions/pyspecific.py b/Doc/tools/extensions/pyspecific.py
index 461e7a2..e8c8876 100644
--- a/Doc/tools/extensions/pyspecific.py
+++ b/Doc/tools/extensions/pyspecific.py
@@ -15,6 +15,7 @@ from os import path
from time import asctime
from pprint import pformat
from docutils.io import StringOutput
+from docutils.parsers.rst import Directive
from docutils.utils import new_document
from docutils import nodes, utils
@@ -23,7 +24,6 @@ from sphinx import addnodes
from sphinx.builders import Builder
from sphinx.locale import translators
from sphinx.util.nodes import split_explicit_title
-from sphinx.util.compat import Directive
from sphinx.writers.html import HTMLTranslator
from sphinx.writers.text import TextWriter
from sphinx.writers.latex import LaTeXTranslator