summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNed Deily <nad@python.org>2017-07-15 21:01:56 (GMT)
committerGitHub <noreply@github.com>2017-07-15 21:01:56 (GMT)
commitada3f31365d0634d0cd8eeacfacd98291e34a8cc (patch)
tree8ad7a106645a3fa993967b3b5d84d56b7c4c1337
parent2ec2c5f0b05efdcb7919c477591f1cb48bfb0aa9 (diff)
downloadcpython-ada3f31365d0634d0cd8eeacfacd98291e34a8cc.zip
cpython-ada3f31365d0634d0cd8eeacfacd98291e34a8cc.tar.gz
cpython-ada3f31365d0634d0cd8eeacfacd98291e34a8cc.tar.bz2
bpo-30939: Avoid Sphinx deprecation warning in docs build. (#2721) (#2723)
(cherry picked from commit 50f58163a69abe2f35e91044d1df165ee7bdbb42)
-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 00c9356..f25c4bc 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
@@ -22,7 +23,6 @@ from docutils import nodes, utils
from sphinx import addnodes
from sphinx.builders import Builder
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