]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-119577: Adjust DeprecationWarning when testing element truth values in...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 7 Jun 2024 03:43:17 +0000 (05:43 +0200)
committerGitHub <noreply@github.com>
Fri, 7 Jun 2024 03:43:17 +0000 (03:43 +0000)
commit56a7e0483436d1ebd2af97c02defe0e67c4bb495
tree04b0c8ad8d4db46be7c8da2668301538345ee994
parentd4566c0cfcc2f3db8fa61b35f99260c184416ba4
[3.13] gh-119577: Adjust DeprecationWarning when testing element truth values in ElementTree (GH-119762) (GH-120189)

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.
(cherry picked from commit 6b606522ca97488aad6fe2f193d4511e7a8f8334)

Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
Doc/library/xml.etree.elementtree.rst
Doc/whatsnew/3.12.rst
Doc/whatsnew/3.13.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