François-Michel L'Heureux added the comment:
Note that you cannot copy paste the code and expect to reproduce the issue
because it contains special characters that cannot be copy pasted via a web
browser.
Here is the output when run.
<?xml version='1.0' encoding='utf-8'?>
<top><line>2015-03-12 09:44:54.560 script runner plugin Hello,
world</line></top>
Traceback (most recent call last):
File "python_xml_builder_bug.py", line 17, in <module>
ElementTree.fromstring(io.getvalue())
File
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/etree/ElementTree.py",
line 1300, in XML
parser.feed(text)
File
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/etree/ElementTree.py",
line 1642, in feed
self._raiseerror(v)
File
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/etree/ElementTree.py",
line 1506, in _raiseerror
raise err
xml.etree.ElementTree.ParseError: not well-formed (invalid token): line 2,
column 35
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue23650>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com