fcntl.ioctl(): Update error message; necessity noted by Michael Hudson.

This commit is contained in:
Fred Drake 2001-05-14 21:02:36 +00:00
parent 992d387540
commit 460f0691df

View 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;
}