[3.12] gh-114737: Revert change to ElementTree.iterparse "root" attri… · python/cpython@5d7b90d · GitHub
Skip to content

Commit 5d7b90d

Browse files
[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 66f95ea) Co-authored-by: Sam Gross <colesbury@gmail.com>
1 parent 0536bbb commit 5d7b90d

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

Lib/test/test_xml_etree.py

Lines changed: 2 additions & 0 deletions

Lib/xml/etree/ElementTree.py

Lines changed: 1 addition & 1 deletion

0 commit comments

Comments
 (0)