summaryrefslogtreecommitdiffstats
path: root/Modules/posixmodule.c
diff options
context:
space:
mode:
authorMartin Panter <vadmium>2015-09-09 05:29:24 (GMT)
committerMartin Panter <vadmium>2015-09-09 05:29:24 (GMT)
commit9499413508b7ff4e7806f8f8e59ba9176d98b39c (patch)
tree4cfae3712f336855be7dee238b0a0ee8c95a9810 /Modules/posixmodule.c
parent78d915aa3e12300118f0f274ead583713197ead7 (diff)
downloadcpython-9499413508b7ff4e7806f8f8e59ba9176d98b39c.zip
cpython-9499413508b7ff4e7806f8f8e59ba9176d98b39c.tar.gz
cpython-9499413508b7ff4e7806f8f8e59ba9176d98b39c.tar.bz2
os.sendfile(headers=None, trailers=None) arguments are not actually accepted
Needs to be tested on a BSD.
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 44bd3be..7c937e0 100644
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -8246,7 +8246,7 @@ posix_write(PyObject *self, PyObject *args)
#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.");
@@ -8286,7 +8286,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 */
@@ -8303,7 +8303,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 */