From 3b08a2978ec5c555850275dc4fbc15c803d264b2 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Fri, 24 May 2013 14:35:57 -0700 Subject: [PATCH] indicate that read/write work with bytes (closes #18009) --- Modules/posixmodule.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index a351caeddc..0cb18365ad 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) -- 2.50.1