summaryrefslogtreecommitdiff
path: root/sphinx/ext/autodoc/directive.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2018-08-18 17:40:38 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2018-08-18 18:22:16 +0900
commit3d9e2cf8312ed5d86a9838fe7b9485c09fd0a922 (patch)
tree8ab74a8d61bd3f1c64df59579d609d389207c974 /sphinx/ext/autodoc/directive.py
parent07c3f24aad4e1b2bd550f8f6b87ec9bcbb3fc08e (diff)
downloadsphinx-git-3d9e2cf8312ed5d86a9838fe7b9485c09fd0a922.tar.gz
Add autodoc_default_options
Diffstat (limited to 'sphinx/ext/autodoc/directive.py')
-rw-r--r--sphinx/ext/autodoc/directive.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/ext/autodoc/directive.py b/sphinx/ext/autodoc/directive.py
index 34f7567d4..3a3434fc8 100644
--- a/sphinx/ext/autodoc/directive.py
+++ b/sphinx/ext/autodoc/directive.py
@@ -67,8 +67,8 @@ def process_documenter_options(documenter, config, options):
continue
else:
negated = options.pop('no-' + name, True) is None
- if name in config.autodoc_default_flags and not negated:
- options[name] = config.autodoc_default_flags[name]
+ if name in config.autodoc_default_options and not negated:
+ options[name] = config.autodoc_default_options[name]
return Options(assemble_option_dict(options.items(), documenter.option_spec))