Issue #20699: Merge io bytes-like fixes from 3.5

This commit is contained in:
Martin Panter 2016-05-28 01:07:08 +00:00
commit c249221dfd
10 changed files with 128 additions and 67 deletions

View file

@ -546,7 +546,7 @@ _io.BytesIO.readinto
buffer: Py_buffer(accept={rwbuffer})
/
Read up to len(buffer) bytes into buffer.
Read bytes into buffer.
Returns number of bytes read (0 for EOF), or None if the object
is set not to block and has no data to read.
@ -554,7 +554,7 @@ is set not to block and has no data to read.
static PyObject *
_io_BytesIO_readinto_impl(bytesio *self, Py_buffer *buffer)
/*[clinic end generated code: output=a5d407217dcf0639 input=b52a8782706f0037]*/
/*[clinic end generated code: output=a5d407217dcf0639 input=1424d0fdce857919]*/
{
Py_ssize_t len, n;