summaryrefslogtreecommitdiffstats
path: root/Modules/_io/fileio.c
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2015-04-09 23:18:44 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2015-04-09 23:18:44 (GMT)
commitb817b77a8c4c6c3031c48b2ff95f677e9f1f0b94 (patch)
tree419d276b69c2f26ca3a0b8870ce697e7887b0956 /Modules/_io/fileio.c
parent89c057a26392349a094f3a1ca61b5f717508855a (diff)
downloadcpython-b817b77a8c4c6c3031c48b2ff95f677e9f1f0b94.zip
cpython-b817b77a8c4c6c3031c48b2ff95f677e9f1f0b94.tar.gz
cpython-b817b77a8c4c6c3031c48b2ff95f677e9f1f0b94.tar.bz2
Replaced "string" with "bytes object" in docstrings of binary I/O objects.
Diffstat (limited to 'Modules/_io/fileio.c')
-rw-r--r--Modules/_io/fileio.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/_io/fileio.c b/Modules/_io/fileio.c
index 80ca99c..23ca31d 100644
--- a/Modules/_io/fileio.c
+++ b/Modules/_io/fileio.c
@@ -667,7 +667,7 @@ fileio_readall(fileio *self)
if (bufsize > PY_SSIZE_T_MAX || bufsize <= 0) {
PyErr_SetString(PyExc_OverflowError,
"unbounded read returned more bytes "
- "than a Python string can hold");
+ "than a Python bytes object can hold");
Py_DECREF(result);
return NULL;
}
@@ -1111,13 +1111,13 @@ PyDoc_STRVAR(read_doc,
"\n"
"Only makes one system call, so less data may be returned than requested\n"
"In non-blocking mode, returns None if no data is available.\n"
-"On end-of-file, returns ''.");
+"Return an empty bytes object at EOF.");
PyDoc_STRVAR(readall_doc,
"readall() -> bytes. read all data from the file, returned as bytes.\n"
"\n"
"In non-blocking mode, returns as much as is immediately available,\n"
-"or None if no data is available. On end-of-file, returns ''.");
+"or None if no data is available. Return an empty bytes object at EOF.");
PyDoc_STRVAR(write_doc,
"write(b: bytes) -> int. Write bytes b to file, return number written.\n"