[issue16975] Broken error handling in codecs.escape_decode()
Serhiy Storchaka
report at bugs.python.org
Wed Jan 16 13:04:04 CET 2013
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 <report at bugs.python.org>
<http://bugs.python.org/issue16975>
_______________________________________
More information about the Python-bugs-list
mailing list