]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-119577: Adjust DeprecationWarning when testing element truth values in ElementTree...
authorJacob Walls <jacobtylerwalls@gmail.com>
Fri, 7 Jun 2024 03:18:30 +0000 (23:18 -0400)
committerGitHub <noreply@github.com>
Fri, 7 Jun 2024 03:18:30 +0000 (20:18 -0700)
commit6b606522ca97488aad6fe2f193d4511e7a8f8334
tree39a2f4ea67ddb62eb1ae01768cc20c6b60e2a41d
parent14e1506a6d7056c38fbbc0797268dcf783f91243
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.
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