[issue46186] replace `io.IncrementalNewlineDecoder` with non incremental newline decoders

Guo Ci Teo report at bugs.python.org
Sat Jan 1 15:34:08 EST 2022


Guo Ci Teo <zguoci at gmail.com> added the comment:

Some uses of the `decode` method of `io.IncrementalNewlineDecoder` were incorrect without the `final=True` argument.
One way to fix it would be to add the `final=True` in all cases.
But the incremental decoding feature is not used, so I decided to replace it with stateless non-incremental newline decoders.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46186>
_______________________________________


More information about the Python-bugs-list mailing list