diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2020-03-16 01:58:02 +0900 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2020-03-16 01:58:02 +0900 |
commit | 2202bff6b254634491779628ee9de55afe3046dd (patch) | |
tree | 66014f352e5d1d1ed54a674de7acdc312a8c05bd /sphinx/ext/autodoc/directive.py | |
parent | 77d84713a1474f902b91f5ad463b1cd253ef8496 (diff) | |
download | sphinx-git-2202bff6b254634491779628ee9de55afe3046dd.tar.gz |
Deprecate sphinx.ext.autodoc.get_documenters()
Diffstat (limited to 'sphinx/ext/autodoc/directive.py')
-rw-r--r-- | sphinx/ext/autodoc/directive.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/ext/autodoc/directive.py b/sphinx/ext/autodoc/directive.py index 9302a954a..3be19f089 100644 --- a/sphinx/ext/autodoc/directive.py +++ b/sphinx/ext/autodoc/directive.py @@ -18,7 +18,7 @@ from docutils.utils import Reporter, assemble_option_dict from sphinx.config import Config from sphinx.deprecation import RemovedInSphinx40Warning from sphinx.environment import BuildEnvironment -from sphinx.ext.autodoc import Documenter, Options, get_documenters +from sphinx.ext.autodoc import Documenter, Options from sphinx.util import logging from sphinx.util.docutils import SphinxDirective, switch_source_input from sphinx.util.nodes import nested_parse_with_titles @@ -129,7 +129,7 @@ class AutodocDirective(SphinxDirective): # look up target Documenter objtype = self.name[4:] # strip prefix (auto-). - doccls = get_documenters(self.env.app)[objtype] + doccls = self.env.app.registry.documenters[objtype] # process the options with the selected documenter's option_spec try: |