mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Merge branch '1.7' into 5125_wrong_sphinx.main
This commit is contained in:
commit
4aeb94a7a2
1
CHANGES
1
CHANGES
@ -33,6 +33,7 @@ Bugs fixed
|
|||||||
* #5091: latex: curly braces in index entries are not handled correctly
|
* #5091: latex: curly braces in index entries are not handled correctly
|
||||||
* #5070: epub: Wrong internal href fragment links
|
* #5070: epub: Wrong internal href fragment links
|
||||||
* #5104: apidoc: Interface of ``sphinx.apidoc:main()`` has changed
|
* #5104: apidoc: Interface of ``sphinx.apidoc:main()`` has changed
|
||||||
|
* #5076: napoleon raises RuntimeError with python 3.7
|
||||||
* #5125: sphinx-build: Interface of ``sphinx:main()`` has changed
|
* #5125: sphinx-build: Interface of ``sphinx:main()`` has changed
|
||||||
* sphinx-build: ``sphinx.cmd.build.main()`` refers ``sys.argv`` instead of given
|
* sphinx-build: ``sphinx.cmd.build.main()`` refers ``sys.argv`` instead of given
|
||||||
argument
|
argument
|
||||||
|
@ -527,7 +527,14 @@ class GoogleDocstring(UnicodeMixin):
|
|||||||
self._parsed_lines = self._consume_empty()
|
self._parsed_lines = self._consume_empty()
|
||||||
|
|
||||||
if self._name and (self._what == 'attribute' or self._what == 'data'):
|
if self._name and (self._what == 'attribute' or self._what == 'data'):
|
||||||
self._parsed_lines.extend(self._parse_attribute_docstring())
|
# Implicit stop using StopIteration no longer allowed in
|
||||||
|
# Python 3.7; see PEP 479
|
||||||
|
res = [] # type: List[unicode]
|
||||||
|
try:
|
||||||
|
res = self._parse_attribute_docstring()
|
||||||
|
except StopIteration:
|
||||||
|
pass
|
||||||
|
self._parsed_lines.extend(res)
|
||||||
return
|
return
|
||||||
|
|
||||||
while self._line_iter.has_next():
|
while self._line_iter.has_next():
|
||||||
|
Loading…
Reference in New Issue
Block a user