Eli Bendersky <eli...@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 <rep...@bugs.python.org> <http://bugs.python.org/issue14246> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com