summaryrefslogtreecommitdiffstats
path: root/Modules/posixmodule.c
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2013-05-24 21:35:57 (GMT)
committerBenjamin Peterson <benjamin@python.org>2013-05-24 21:35:57 (GMT)
commit3b08a2978ec5c555850275dc4fbc15c803d264b2 (patch)
tree7f239a49d44352e420692d9f418d4fe241cc1458 /Modules/posixmodule.c
parentc3511c1dd8737a96d97deb95b799436e8e27a2fa (diff)
downloadcpython-3b08a2978ec5c555850275dc4fbc15c803d264b2.zip
cpython-3b08a2978ec5c555850275dc4fbc15c803d264b2.tar.gz
cpython-3b08a2978ec5c555850275dc4fbc15c803d264b2.tar.bz2
indicate that read/write work with bytes (closes #18009)
Diffstat (limited to 'Modules/posixmodule.c')
-rw-r--r--Modules/posixmodule.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index a351cae..0cb1836 100644
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -7838,7 +7838,7 @@ posix_lseek(PyObject *self, PyObject *args)
PyDoc_STRVAR(posix_read__doc__,
-"read(fd, buffersize) -> string\n\n\
+"read(fd, buffersize) -> bytes\n\n\
Read a file descriptor.");
static PyObject *
@@ -8008,8 +8008,8 @@ posix_pread(PyObject *self, PyObject *args)
#endif
PyDoc_STRVAR(posix_write__doc__,
-"write(fd, string) -> byteswritten\n\n\
-Write a string to a file descriptor.");
+"write(fd, data) -> byteswritten\n\n\
+Write bytes to a file descriptor.");
static PyObject *
posix_write(PyObject *self, PyObject *args)