]> granicus.if.org Git - python/commitdiff
fcntl.ioctl(): Update error message; necessity noted by Michael Hudson.
authorFred Drake <fdrake@acm.org>
Mon, 14 May 2001 21:02:36 +0000 (21:02 +0000)
committerFred Drake <fdrake@acm.org>
Mon, 14 May 2001 21:02:36 +0000 (21:02 +0000)
Modules/fcntlmodule.c

index c45dbe903db179c118848077e0702ac855622073..9adba8cb5c8307cde9a52deca05e0bf2b41699b9 100644 (file)
@@ -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;
        }