summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/pyshell.py
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2022-08-01 21:22:33 (GMT)
committerGitHub <noreply@github.com>2022-08-01 21:22:33 (GMT)
commitb12dba40ff00e0c7a47036401cdcfbe3845d9c2a (patch)
treeb051b3c07be814ab1710f5a3412f2e4172f2d027 /Lib/idlelib/pyshell.py
parent7baca3c05e16d1faeb8c77f07706b84677d97a3d (diff)
downloadcpython-b12dba40ff00e0c7a47036401cdcfbe3845d9c2a.zip
cpython-b12dba40ff00e0c7a47036401cdcfbe3845d9c2a.tar.gz
cpython-b12dba40ff00e0c7a47036401cdcfbe3845d9c2a.tar.bz2
gh-91447: Fix findtext to only give an empty string on None (GH-91486)
The API documentation for [findtext](https://docs.python.org/3/library/xml.etree.elementtree.htmlGH-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 GH-91447. Automerge-Triggered-By: GH:gvanrossum (cherry picked from commit a95e60db748ec6f2c19b5710c11f62e1e4d669f4) Co-authored-by: Eugene Triguba <eugenetriguba@gmail.com>
Diffstat (limited to 'Lib/idlelib/pyshell.py')
0 files changed, 0 insertions, 0 deletions