From a4e4737cf36f3ba6f526587f2656cf4be64b91bf Mon Sep 17 00:00:00 2001 From: Mariusz Felisiak Date: Mon, 6 Apr 2020 08:00:40 +0200 Subject: [PATCH] Fixed CodeBlock deprecation warning on Sphinx 2.1+. --- docs/_ext/djangodocs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/_ext/djangodocs.py b/docs/_ext/djangodocs.py index 95d8e89c9b..e9f5edc340 100644 --- a/docs/_ext/djangodocs.py +++ b/docs/_ext/djangodocs.py @@ -10,7 +10,7 @@ from docutils.parsers.rst import Directive from docutils.statemachine import ViewList from sphinx import addnodes from sphinx.builders.html import StandaloneHTMLBuilder -from sphinx.directives import CodeBlock +from sphinx.directives.code import CodeBlock from sphinx.errors import SphinxError from sphinx.domains.std import Cmdoption from sphinx.errors import ExtensionError