Serhiy Storchaka added the comment: Here is a patch which fixes error handling in codecs.escape_decode().
>>> codecs.escape_decode(r'[\x1]\x2', 'replace') (b'[?]?', 8) New tests for escape_decode() added. ---------- keywords: +patch nosy: +doerwalter, lemburg stage: needs patch -> patch review Added file: http://bugs.python.org/file28749/escape_decode_error_handling.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue16975> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com