[issue23650] xml.etree.ElementTreee.write can't parse its own output

2015-03-12 Thread Ned Deily
Ned Deily added the comment: This is a duplicate of Issue5166. Note that in your example, you are not serializing valid XML 1.0: \x1b (ESC) is not a valid XML character, it has to be escaped and, as the discussion in Issue5166 points out, etree does not automatically do that for you. ---

[issue23650] xml.etree.ElementTreee.write can't parse its own output

2015-03-12 Thread François-Michel L'Heureux
François-Michel L'Heureux added the comment: Updated file where copy/pasting works. -- Added file: http://bugs.python.org/file38460/python_xml_builder_bug.py ___ Python tracker _

[issue23650] xml.etree.ElementTreee.write can't parse its own output

2015-03-12 Thread François-Michel L'Heureux
Changes by François-Michel L'Heureux : Removed file: http://bugs.python.org/file38459/python_xml_builder_bug.py ___ Python tracker ___ ___ Pyt

[issue23650] xml.etree.ElementTreee.write can't parse its own output

2015-03-12 Thread R. David Murray
R. David Murray added the comment: Use \x escapes to construct your example, then. -- nosy: +r.david.murray ___ Python tracker ___ ___

[issue23650] xml.etree.ElementTreee.write can't parse its own output

2015-03-12 Thread François-Michel L'Heureux
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. 2015-03-12 09:44:54.560 script runner plugin Hello, world

[issue23650] xml.etree.ElementTreee.write can't parse its own output

2015-03-12 Thread François-Michel L'Heureux
Changes by François-Michel L'Heureux : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue23650] xml.etree.ElementTreee.write can't parse its own output

2015-03-12 Thread François-Michel L'Heureux
New submission from François-Michel L'Heureux: Using TreeBuilder to put data into XML tree. Convert that tree to a string. Parse that string. XML parser error. I expect XML library to be able to parse its own output. Reference example: https://github.com/FinchPowers/python_xml_builder_bug/blob