GH-101228: Fix typo in docstring for read method of `_io.TextIOWrapper` class (#101227)

This commit is contained in:
Partha P. Mukherjee 2023-02-09 12:46:40 -05:00 committed by GitHub
parent 272da55aff
commit f1f3af7b82
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -56,10 +56,10 @@ textiobase_detach(PyObject *self, PyObject *Py_UNUSED(ignored))
}
PyDoc_STRVAR(textiobase_read_doc,
"Read at most n characters from stream.\n"
"Read at most size characters from stream.\n"
"\n"
"Read from underlying buffer until we have n characters or we hit EOF.\n"
"If n is negative or omitted, read until EOF.\n"
"Read from underlying buffer until we have size characters or we hit EOF.\n"
"If size is negative or omitted, read until EOF.\n"
);
static PyObject *