diff options
author | Pauli Virtanen <pav@iki.fi> | 2010-10-01 11:15:38 +0200 |
---|---|---|
committer | Pauli Virtanen <pav@iki.fi> | 2010-10-01 12:13:21 +0200 |
commit | 4510c4a81185eed7e144f75ec5121f80bc924a6e (patch) | |
tree | ceadb6c8e7c06d134d2e1823f4475d2d1b4ef6c6 /doc/sphinxext/docscrape.py | |
parent | 75cebc1b71a161b18a45f291b97595c1f391ca46 (diff) | |
download | numpy-4510c4a81185eed7e144f75ec5121f80bc924a6e.tar.gz |
sphinxext: fix Other Parameters section parsing in docscrape
Diffstat (limited to 'doc/sphinxext/docscrape.py')
-rw-r--r-- | doc/sphinxext/docscrape.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/doc/sphinxext/docscrape.py b/doc/sphinxext/docscrape.py index 63fec42ad..615ea11f8 100644 --- a/doc/sphinxext/docscrape.py +++ b/doc/sphinxext/docscrape.py @@ -284,8 +284,8 @@ class NumpyDocString(object): for (section,content) in self._read_sections(): if not section.startswith('..'): section = ' '.join([s.capitalize() for s in section.split(' ')]) - if section in ('Parameters', 'Attributes', 'Methods', - 'Returns', 'Raises', 'Warns'): + if section in ('Parameters', 'Returns', 'Raises', 'Warns', + 'Other Parameters', 'Attributes', 'Methods'): self[section] = self._parse_param_list(content) elif section.startswith('.. index::'): self['index'] = self._parse_index(section, content) @@ -381,7 +381,8 @@ class NumpyDocString(object): out += self._str_signature() out += self._str_summary() out += self._str_extended_summary() - for param_list in ('Parameters','Returns','Raises'): + for param_list in ('Parameters', 'Returns', 'Other Parameters', + 'Raises', 'Warns'): out += self._str_param_list(param_list) out += self._str_section('Warnings') out += self._str_see_also(func_role) |