diff options
author | Martin Panter <vadmium> | 2015-09-09 06:28:08 (GMT) |
---|---|---|
committer | Martin Panter <vadmium> | 2015-09-09 06:28:08 (GMT) |
commit | 3f560c16e54aae0a1873a551e097e6e41e6aed54 (patch) | |
tree | 321af9620f256f996a10c2c80f9d00c997284261 /Modules/posixmodule.c | |
parent | 29bdbd0270b64b6625be2c94240d2b0a233f8ea5 (diff) | |
parent | 6088b7bd492aed4524a34156a1ecfd5facc17faa (diff) | |
download | cpython-3f560c16e54aae0a1873a551e097e6e41e6aed54.zip cpython-3f560c16e54aae0a1873a551e097e6e41e6aed54.tar.gz cpython-3f560c16e54aae0a1873a551e097e6e41e6aed54.tar.bz2 |
Merge 3.5 into 3.6
Diffstat (limited to 'Modules/posixmodule.c')
-rw-r--r-- | Modules/posixmodule.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index 4b1e5f0..d2e2801 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -8236,7 +8236,7 @@ os_write_impl(PyModuleDef *module, int fd, Py_buffer *data) #ifdef HAVE_SENDFILE PyDoc_STRVAR(posix_sendfile__doc__, "sendfile(out, in, offset, count) -> byteswritten\n\ -sendfile(out, in, offset, count, headers=None, trailers=None, flags=0)\n\ +sendfile(out, in, offset, count[, headers][, trailers], flags=0)\n\ -> byteswritten\n\ Copy count bytes from file descriptor in to file descriptor out."); @@ -8278,7 +8278,7 @@ posix_sendfile(PyObject *self, PyObject *args, PyObject *kwdict) if (headers != NULL) { if (!PySequence_Check(headers)) { PyErr_SetString(PyExc_TypeError, - "sendfile() headers must be a sequence or None"); + "sendfile() headers must be a sequence"); return NULL; } else { Py_ssize_t i = 0; /* Avoid uninitialized warning */ @@ -8295,7 +8295,7 @@ posix_sendfile(PyObject *self, PyObject *args, PyObject *kwdict) if (trailers != NULL) { if (!PySequence_Check(trailers)) { PyErr_SetString(PyExc_TypeError, - "sendfile() trailers must be a sequence or None"); + "sendfile() trailers must be a sequence"); return NULL; } else { Py_ssize_t i = 0; /* Avoid uninitialized warning */ |