]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-131938: Update exception message for `Element.remove()` when an element is not...
authorBénédikt Tran <10796600+picnixz@users.noreply.github.com>
Fri, 4 Apr 2025 15:04:07 +0000 (17:04 +0200)
committerGitHub <noreply@github.com>
Fri, 4 Apr 2025 15:04:07 +0000 (15:04 +0000)
commit04bc681e7cf5b7effd99e676b7deceb27fb34434
tree25ca06e13de3b13890e783908b0c18c911a97f7b
parentdf59226997e067adcfa1bc8d045b7cc1de08906c
gh-131938: Update exception message for `Element.remove()` when an element is not found (#131972)

The exception message for `xml.etree.ElementTree.Element.remove` when an element is not found
has been updated from "list.remove(x): x not in list" to "Element.remove(x): element not found".
Lib/test/test_xml_etree.py
Lib/xml/etree/ElementTree.py
Misc/NEWS.d/next/Library/2025-04-01-13-44-26.gh-issue-131938.dm4Suq.rst [new file with mode: 0644]
Modules/_elementtree.c