]> granicus.if.org Git - python/commit
bpo-32110: codecs.StreamReader.read(n) now returns not more than n (GH-4499) (#4622)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 29 Nov 2017 00:06:53 +0000 (16:06 -0800)
committerSerhiy Storchaka <storchaka@gmail.com>
Wed, 29 Nov 2017 00:06:53 +0000 (02:06 +0200)
commit230ffeae0a3961b1769806bd722c26227c84e8da
tree3e6abd02148b0409eabc4dfe50b9ee2ddb03e070
parent6979fcdc91114b1ccb16345e26734d6df4cccbc3
bpo-32110: codecs.StreamReader.read(n) now returns not more than n (GH-4499) (#4622)

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]