Serhiy Storchaka added the comment: Simpler reproducer:
>>> import xml.etree.ElementTree >>> xml.etree.ElementTree.XML(b'<key attr="' + b'x'*1023 + b'\xc3\xa0""/>') Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/serhiy/py/cpython/Lib/xml/etree/ElementTree.py", line 1315, in XML parser.feed(text) UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc3 in position 1023: invalid continuation byte Seems this is a regression in the Expat library. ---------- nosy: +haypo priority: normal -> critical _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue31303> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com