From: Fred Drake Date: Mon, 14 May 2001 21:02:36 +0000 (+0000) Subject: fcntl.ioctl(): Update error message; necessity noted by Michael Hudson. X-Git-Tag: v2.2a3~1779 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=460f0691dff8e8f36b325a87f1af25ca6571ddad;p=thirdparty%2FPython%2Fcpython.git fcntl.ioctl(): Update error message; necessity noted by Michael Hudson. --- diff --git a/Modules/fcntlmodule.c b/Modules/fcntlmodule.c index c45dbe903db1..9adba8cb5c83 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; }