]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-119577: Adjust DeprecationWarning when testing element truth values in...
authorGregory P. Smith <greg@krypto.org>
Tue, 6 Aug 2024 17:20:06 +0000 (10:20 -0700)
committerGitHub <noreply@github.com>
Tue, 6 Aug 2024 17:20:06 +0000 (17:20 +0000)
commitb31764104ead12c6d6231abd729e87414e9e7644
treeb0a9071ddea2a44f60d6367813c95682a29ee550
parente970431f13ea0ecb4c27b446ddceb98b76ad1175
[3.12] gh-119577: Adjust DeprecationWarning when testing element truth values in Element tree (GH-119762) (#120190)

gh-119577: Adjust DeprecationWarning when testing element truth values in ElementTree (GH-119762)

Adjust DeprecationWarning when testing element truth values in
ElementTree, we're planning to go with the more natural True return
rather than a disruptive harder to code around exception raise, and are
deferring the behavior change for a few more releases.

Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
Doc/library/xml.etree.elementtree.rst
Lib/test/test_xml_etree.py
Lib/xml/etree/ElementTree.py
Misc/NEWS.d/next/Library/2024-05-29-21-50-05.gh-issue-119577.S3BlKJ.rst [new file with mode: 0644]
Modules/_elementtree.c