diff options
author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2020-04-06 08:00:40 +0200 |
---|---|---|
committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2020-04-07 09:48:52 +0200 |
commit | a4e4737cf36f3ba6f526587f2656cf4be64b91bf (patch) | |
tree | 0b825ed88186861d19f7d8f1e9513ac363dd5cfa /docs/_ext | |
parent | 69e2cd6fed40f3ecf767609b80ad31f288446e48 (diff) | |
download | django-a4e4737cf36f3ba6f526587f2656cf4be64b91bf.tar.gz |
Fixed CodeBlock deprecation warning on Sphinx 2.1+.
Diffstat (limited to 'docs/_ext')
-rw-r--r-- | docs/_ext/djangodocs.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |