This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author jlaurens
Recipients jlaurens
Date 2015-04-29.00:42:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1430268121.66.0.962770633094.issue24072@psf.upfronthosting.co.za>
In-reply-to
Content
text is not catcher in case 3 below

INPUT

import xml.etree.ElementTree as ET
root1 = ET.fromstring('<a>TEXT</a>')
print(root1.text)
root2 = ET.fromstring('<a>TEXT<b/></a>')
print(root2.text)
root3 = ET.fromstring('<a><b/>TEXT</a>')
print(root3.text)

CURRENT OUTPUT

TEXT
TEXT
None <---------- ERROR HERE

EXPECTED OUTPUT

TEXT
TEXT
TEXT
History
Date User Action Args
2015-04-29 00:42:01jlaurenssetrecipients: + jlaurens
2015-04-29 00:42:01jlaurenssetmessageid: <1430268121.66.0.962770633094.issue24072@psf.upfronthosting.co.za>
2015-04-29 00:42:01jlaurenslinkissue24072 messages
2015-04-29 00:42:00jlaurenscreate