summaryrefslogtreecommitdiffstats
path: root/Modules/_io
diff options
context:
space:
mode:
authorMartin Panter <vadmium+py@gmail.com>2016-04-16 09:28:57 (GMT)
committerMartin Panter <vadmium+py@gmail.com>2016-04-16 09:28:57 (GMT)
commit119e502277d104286620806ef130e3c0d4f439f0 (patch)
tree78150447a369c7e43f4eb8b7a901655f6e66894e /Modules/_io
parent00ccacc8db8194f15d8af26b788ec36314b990d1 (diff)
downloadcpython-119e502277d104286620806ef130e3c0d4f439f0.zip
cpython-119e502277d104286620806ef130e3c0d4f439f0.tar.gz
cpython-119e502277d104286620806ef130e3c0d4f439f0.tar.bz2
Fix typos in code comments and documentation
Diffstat (limited to 'Modules/_io')
-rw-r--r--Modules/_io/bytesio.c4
-rw-r--r--Modules/_io/clinic/bytesio.c.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/Modules/_io/bytesio.c b/Modules/_io/bytesio.c
index 49174b4..058df47 100644
--- a/Modules/_io/bytesio.c
+++ b/Modules/_io/bytesio.c
@@ -551,12 +551,12 @@ _io.BytesIO.readinto
Read up to len(buffer) bytes into buffer.
Returns number of bytes read (0 for EOF), or None if the object
-is set not to block as has no data to read.
+is set not to block and has no data to read.
[clinic start generated code]*/
static PyObject *
_io_BytesIO_readinto_impl(bytesio *self, Py_buffer *buffer)
-/*[clinic end generated code: output=a5d407217dcf0639 input=71581f32635c3a31]*/
+/*[clinic end generated code: output=a5d407217dcf0639 input=b52a8782706f0037]*/
{
Py_ssize_t len, n;
diff --git a/Modules/_io/clinic/bytesio.c.h b/Modules/_io/clinic/bytesio.c.h
index 1ab1d65..e468215 100644
--- a/Modules/_io/clinic/bytesio.c.h
+++ b/Modules/_io/clinic/bytesio.c.h
@@ -262,7 +262,7 @@ PyDoc_STRVAR(_io_BytesIO_readinto__doc__,
"Read up to len(buffer) bytes into buffer.\n"
"\n"
"Returns number of bytes read (0 for EOF), or None if the object\n"
-"is set not to block as has no data to read.");
+"is set not to block and has no data to read.");
#define _IO_BYTESIO_READINTO_METHODDEF \
{"readinto", (PyCFunction)_io_BytesIO_readinto, METH_O, _io_BytesIO_readinto__doc__},
@@ -419,4 +419,4 @@ _io_BytesIO___init__(PyObject *self, PyObject *args, PyObject *kwargs)
exit:
return return_value;
}
-/*[clinic end generated code: output=500ccc149587fac4 input=a9049054013a1b77]*/
+/*[clinic end generated code: output=164cf0e4117dadbe input=a9049054013a1b77]*/