Christian Heimes added the comment: I'm able to confirm the issue for Python 2.7 and 3.x:
>>> import xml.etree.ElementTree as ET >>> tree = ET.fromstring("<someTag>someData</someTag>") >>> ET.tostring(tree, encoding="utf-8", method="html") b'<someTag>someData</sometag>' ---------- nosy: +christian.heimes stage: -> needs patch versions: -Python 2.6, Python 3.1, Python 3.5 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue18347> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com