]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.11] 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 12:03:08 +0000 (13:03 +0100)
committerGitHub <noreply@github.com>
Wed, 31 Jan 2024 12:03:08 +0000 (12:03 +0000)
commit3982049a3054b0503b09d9b9d2a1735a3195048c
treedd7a2091b3411943516ebbeed7b65757d8722704
parentad6233396a323c0a6e90edd3c9b2b832928acb92
[3.11] gh-114737: Revert change to ElementTree.iterparse "root" attribute (GH-114755) (GH-114799)

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