Skip to content

Commit 8beefcf

Browse files
author
fdrake
committed
fcntl.ioctl(): Update error message; necessity noted by Michael Hudson. git-svn-id: http://svn.python.org/projects/python/trunk@20791 6015fed2-1504-0410-9fe1-9d1591cc4771
1 parent 3bc2e06 commit 8beefcf

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)