]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-34941: Fix searching Element subclasses. (GH-9766)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 14 Oct 2018 07:55:49 +0000 (00:55 -0700)
committerGitHub <noreply@github.com>
Sun, 14 Oct 2018 07:55:49 +0000 (00:55 -0700)
commitb1c800303e8458e00428ae66351ad492a503a46f
treeac97472162be1d061af51e6651436cb72a06af15
parent77e0abe228564a5be23284bd8e963c11952eb55b
bpo-34941: Fix searching Element subclasses. (GH-9766)

Methods find(), findtext() and findall() of xml.etree.ElementTree.Element
were not able to find chldren which are instances of Element subclasses.
(cherry picked from commit b11c5667f99c4f0018e3394c4d07c519d835671a)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Lib/test/test_xml_etree.py
Misc/NEWS.d/next/Library/2018-10-09-14-42-16.bpo-34941.1Q5QKv.rst [new file with mode: 0644]
Modules/_elementtree.c