From: Benjamin Peterson Date: Fri, 24 May 2013 21:35:57 +0000 (-0700) Subject: indicate that read/write work with bytes (closes #18009) X-Git-Tag: v3.4.0a1~645^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3b08a2978ec5c555850275dc4fbc15c803d264b2;p=thirdparty%2FPython%2Fcpython.git indicate that read/write work with bytes (closes #18009) --- diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index a351caeddc77..0cb18365adfc 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)