Serhiy Storchaka added the comment:

I can propose only raise a specialized exception instead of general 
xml.etree.ElementTree.ParseError. Here is a patch. It also fixes a buffer 
overread bug mentioned by Amaury.

----------
components: +Extension Modules, Unicode, XML -Library (Lib)
keywords: +patch
nosy: +ezio.melotti
stage:  -> patch review
versions: +Python 3.4
Added file: 
http://bugs.python.org/file30328/expat_unknown_encoding_handler.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue13612>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to