mirror of
https://github.com/python/cpython.git
synced 2025-10-17 12:18:23 +00:00
fcntl.ioctl(): Update error message; necessity noted by Michael Hudson.
This commit is contained in:
parent
992d387540
commit
460f0691df
1 changed files with 3 additions and 1 deletions
|
@ -124,7 +124,9 @@ fcntl_ioctl(PyObject *self, PyObject *args)
|
||||||
|
|
||||||
PyErr_Clear();
|
PyErr_Clear();
|
||||||
arg = 0;
|
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)) {
|
conv_descriptor, &fd, &code, &arg)) {
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue