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 François-Michel L'Heureux
Recipients François-Michel L'Heureux
Date 2015-03-12.17:36:58
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1426181819.06.0.38167735026.issue23650@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2015-03-12 17:36:59François-Michel L'Heureuxsetrecipients: + François-Michel L'Heureux
2015-03-12 17:36:59François-Michel L'Heureuxsetmessageid: <1426181819.06.0.38167735026.issue23650@psf.upfronthosting.co.za>
2015-03-12 17:36:59François-Michel L'Heureuxlinkissue23650 messages
2015-03-12 17:36:58François-Michel L'Heureuxcreate