Menu ▾ ▴

Commit [r8885]  Maximize  Restore  History

Node.traverse() returns a list again to restore backwards compatibility.

Although the documented API only promised an "iterable" as return
value, the implementation returned a list.
Because Sphinx < 4.0.0 relies on this and Sphinx < 3.5.4 places no upper
limit to the Docutils dependency, this led to many errors "in the wild".

Fixes bug #431.

New method Node.findall(): like Node.traverse() but returns an iterator.

milde 2021-11-11

changed /trunk/docutils/HISTORY.txt
changed /trunk/docutils/RELEASE-NOTES.txt
changed /trunk/docutils/docutils/nodes.py
changed /trunk/docutils/docutils/parsers/recommonmark_wrapper.py
changed /trunk/docutils/docutils/parsers/rst/states.py
changed /trunk/docutils/docutils/transforms/frontmatter.py
changed /trunk/docutils/docutils/transforms/misc.py
changed /trunk/docutils/docutils/transforms/references.py
changed /trunk/docutils/docutils/transforms/universal.py
changed /trunk/docutils/docutils/transforms/writer_aux.py
/trunk/docutils/HISTORY.txt Diff Switch to side-by-side view
Loading...
/trunk/docutils/RELEASE-NOTES.txt Diff Switch to side-by-side view
Loading...
/trunk/docutils/docutils/nodes.py Diff Switch to side-by-side view
Loading...
/trunk/docutils/docutils/parsers/recommonmark_wrapper.py Diff Switch to side-by-side view
Loading...
/trunk/docutils/docutils/parsers/rst/states.py Diff Switch to side-by-side view
Loading...
/trunk/docutils/docutils/transforms/frontmatter.py Diff Switch to side-by-side view
Loading...
/trunk/docutils/docutils/transforms/misc.py Diff Switch to side-by-side view
Loading...
/trunk/docutils/docutils/transforms/references.py Diff Switch to side-by-side view
Loading...
/trunk/docutils/docutils/transforms/universal.py Diff Switch to side-by-side view
Loading...
/trunk/docutils/docutils/transforms/writer_aux.py Diff Switch to side-by-side view
Loading...