From cb16458c4f91fe43b898b55b04fb177e914ac3af Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Wed, 24 May 2017 10:39:51 -0400 Subject: [PATCH] Removed usage of deprecated sphinx.util.compat.Directive. --- docs/_ext/djangodocs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/_ext/djangodocs.py b/docs/_ext/djangodocs.py index eb0b216739..7ccf0a0715 100644 --- a/docs/_ext/djangodocs.py +++ b/docs/_ext/djangodocs.py @@ -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+