mirror of
https://github.com/python/cpython.git
synced 2025-11-03 11:23:31 +00:00
The API documentation for [findtext](https://docs.python.org/3/library/xml.etree.elementtree.html#xml.etree.ElementTree.Element.findtext) states that this function gives back an empty string on "no text content." With the previous implementation, this would give back a empty string even on text content values such as 0 or False. This patch attempts to resolve that by only giving back an empty string if the text attribute is set to `None`. Resolves #91447. Automerge-Triggered-By: GH:gvanrossum |
||
|---|---|---|
| .. | ||
| dom | ||
| etree | ||
| parsers | ||
| sax | ||
| __init__.py | ||