]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-114737: Revert change to ElementTree.iterparse "root" attribute (GH-114755...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 31 Jan 2024 11:59:58 +0000 (12:59 +0100)
committerGitHub <noreply@github.com>
Wed, 31 Jan 2024 11:59:58 +0000 (11:59 +0000)
commit5d7b90db0cd463e69d15acf5498232b9bc2bfeaa
tree8babd901e2d0acf9a32af1c4afd3b4603f2f0aec
parent0536bbb192c5ecca5e21385f82b0ac86f2e7e34c
[3.12] gh-114737: Revert change to ElementTree.iterparse "root" attribute (GH-114755) (GH-114798)

Prior to gh-114269, the iterator returned by ElementTree.iterparse was
initialized with the root attribute as None. This restores the previous
behavior.
(cherry picked from commit 66f95ea6a65deff547cab0d312b8c8c8a4cf8beb)

Co-authored-by: Sam Gross <colesbury@gmail.com>
Lib/test/test_xml_etree.py
Lib/xml/etree/ElementTree.py