diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2018-01-08 20:09:23 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-08 20:09:23 +0900 |
commit | 3965b1f023bbac932d0dfbf414386f0667ec002a (patch) | |
tree | 90ad9878222f0e237fc9459596a480b897e11ad5 /sphinx/ext/autodoc/directive.py | |
parent | b6e38b406541f6eef74e2d19a727522307c96eb9 (diff) | |
parent | 8ca490f3996a6babc10b69fb4c2af5766c6a1a85 (diff) | |
download | sphinx-git-3965b1f023bbac932d0dfbf414386f0667ec002a.tar.gz |
Merge pull request #4366 from tk0miya/refactor_autodoc
Refactor autodoc
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 5ea4a9b58..5d17481eb 100644 --- a/sphinx/ext/autodoc/directive.py +++ b/sphinx/ext/autodoc/directive.py @@ -12,7 +12,7 @@ from docutils.parsers.rst import Directive from docutils.statemachine import ViewList from docutils.utils import assemble_option_dict -from sphinx.ext.autodoc import AutoDirective +from sphinx.ext.autodoc import get_documenters from sphinx.util import logging from sphinx.util.docutils import switch_source_input from sphinx.util.nodes import nested_parse_with_titles @@ -127,7 +127,7 @@ class AutodocDirective(Directive): # look up target Documenter objtype = self.name[4:] # strip prefix (auto-). - doccls = AutoDirective._registry[objtype] + doccls = get_documenters(env.app)[objtype] # process the options with the selected documenter's option_spec try: |