]> granicus.if.org Git - python/commit
bpo-32110: codecs.StreamReader.read(n) now returns not more than n (#4499)
authorSerhiy Storchaka <storchaka@gmail.com>
Tue, 28 Nov 2017 23:30:00 +0000 (01:30 +0200)
committerGitHub <noreply@github.com>
Tue, 28 Nov 2017 23:30:00 +0000 (01:30 +0200)
commit219c2de5ad0fdac825298bed1bb251f16956c04a
tree728e8ffcfecbf1bc12aefaff2dad81720058f775
parent23df2d1304ece169d7e0dfc843dfb8026b413d9f
bpo-32110: codecs.StreamReader.read(n) now returns not more than n (#4499)

characters/bytes for non-negative n.  This makes it compatible with
read() methods of other file-like objects.
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]