[issue14246] Accelerated ETree XMLParser cannot handle io.StringIO
Eli Bendersky
report at bugs.python.org
Sat Mar 10 19:28:01 CET 2012
Eli Bendersky <eliben at gmail.com> added the comment:
Note that this code works fine:
---------------------------------------
tree = ET.ElementTree()
stream = io.BytesIO()
stream.write(b'''<?xml version="1.0"?>
<site>
</site>
''')
stream.seek(0)
tree.parse(stream)
print(tree.getroot())
---------------------------------------
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14246>
_______________________________________
More information about the Python-bugs-list
mailing list