[issue12171] Reset method of the incremental encoders of CJK codecs calls the decoder reset function

STINNER Victor report at bugs.python.org
Thu May 26 00:31:05 CEST 2011


STINNER Victor <victor.stinner at haypocalc.com> added the comment:

cjk_encreset.patch: Fix multibytecodec.MultibyteIncrementalEncoder.reset(), call encreset() instead of decreset(). Improve also incremental encoder tests: reset the encoder using .encode('', final=True) and check the output.

I also prefer to reuse the existing API instead of changing reset() API just for a corner case.

----------
Added file: http://bugs.python.org/file22119/cjk_encreset.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12171>
_______________________________________


More information about the Python-bugs-list mailing list