From 460f0691dff8e8f36b325a87f1af25ca6571ddad Mon Sep 17 00:00:00 2001 From: Fred Drake Date: Mon, 14 May 2001 21:02:36 +0000 Subject: fcntl.ioctl(): Update error message; necessity noted by Michael Hudson. --- Modules/fcntlmodule.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; } -- cgit v0.12