Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 460f069

Browse files
committed
fcntl.ioctl(): Update error message; necessity noted by Michael Hudson.
1 parent 992d387 commit 460f069

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Modules/fcntlmodule.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,9 @@ fcntl_ioctl(PyObject *self, PyObject *args)
124124

125125
PyErr_Clear();
126126
arg = 0;
127-
if (!PyArg_ParseTuple(args, "O&i|i;ioctl requires 2 integers and optionally a third integer or a string",
127+
if (!PyArg_ParseTuple(args,
128+
"O&i|i;ioctl requires a file or file descriptor,"
129+
" an integer and optionally a third integer or a string",
128130
conv_descriptor, &fd, &code, &arg)) {
129131
return NULL;
130132
}

0 commit comments

Comments
 (0)