Amaury Forgeot d'Arc <amaur...@gmail.com> added the comment: Looks like an implementation bug to me; far too late to change it, though.
In your test, you could use pyexpat.ErrorString(e.code) == pyexpat.errors.XML_ERROR_FINISHED And the docs could mention this trick. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue6676> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com