summaryrefslogtreecommitdiffstats
path: root/Modules/fcntlmodule.c
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2001-05-14 21:02:36 (GMT)
committerFred Drake <fdrake@acm.org>2001-05-14 21:02:36 (GMT)
commit460f0691dff8e8f36b325a87f1af25ca6571ddad (patch)
tree33b99fdbf011b543fec06ab78908a7c41922a633 /Modules/fcntlmodule.c
parent992d387540f01d8977c628013e80228ddf682810 (diff)
downloadcpython-460f0691dff8e8f36b325a87f1af25ca6571ddad.zip
cpython-460f0691dff8e8f36b325a87f1af25ca6571ddad.tar.gz
cpython-460f0691dff8e8f36b325a87f1af25ca6571ddad.tar.bz2
fcntl.ioctl(): Update error message; necessity noted by Michael Hudson.
Diffstat (limited to 'Modules/fcntlmodule.c')
-rw-r--r--Modules/fcntlmodule.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/Modules/fcntlmodule.c b/Modules/fcntlmodule.c
index c45dbe90..9adba8c 100644
--- a/Modules/fcntlmodule.c
+++ b/Modules/fcntlmodule.c
@@ -124,7 +124,9 @@ fcntl_ioctl(PyObject *self, PyObject *args)
PyErr_Clear();
arg = 0;
- if (!PyArg_ParseTuple(args, "O&i|i;ioctl requires 2 integers and optionally a third integer or a string",
+ if (!PyArg_ParseTuple(args,
+ "O&i|i;ioctl requires a file or file descriptor,"
+ " an integer and optionally a third integer or a string",
conv_descriptor, &fd, &code, &arg)) {
return NULL;
}