]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-32110: codecs.StreamReader.read(n) now returns not more than n (GH-4499) (#4623)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 29 Nov 2017 00:15:43 +0000 (16:15 -0800)
committerSerhiy Storchaka <storchaka@gmail.com>
Wed, 29 Nov 2017 00:15:43 +0000 (02:15 +0200)
commitfc73c54dae46e6c47dcd4a535f7bc68a46b8e398
tree6831749d74ae6aaf177f34ff14cbef253abe8dc9
parent180372c08a25332429f6175d6aa036c1ec643ca3
bpo-32110: codecs.StreamReader.read(n) now returns not more than n (GH-4499) (#4623)

characters/bytes for non-negative n.  This makes it compatible with
read() methods of other file-like objects.
(cherry picked from commit 219c2de5ad0fdac825298bed1bb251f16956c04a)
Lib/codecs.py
Lib/test/test_codecs.py
Misc/NEWS.d/next/Library/2017-11-22-09-44-15.bpo-32110.VJa9bo.rst [new file with mode: 0644]