diff options
author | Fred Drake <fdrake@acm.org> | 2001-05-14 21:02:36 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2001-05-14 21:02:36 (GMT) |
commit | 460f0691dff8e8f36b325a87f1af25ca6571ddad (patch) | |
tree | 33b99fdbf011b543fec06ab78908a7c41922a633 | |
parent | 992d387540f01d8977c628013e80228ddf682810 (diff) | |
download | cpython-460f0691dff8e8f36b325a87f1af25ca6571ddad.zip cpython-460f0691dff8e8f36b325a87f1af25ca6571ddad.tar.gz cpython-460f0691dff8e8f36b325a87f1af25ca6571ddad.tar.bz2 |
fcntl.ioctl(): Update error message; necessity noted by Michael Hudson.
-rw-r--r-- | Modules/fcntlmodule.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Modules/fcntlmodule.c b/Modules/fcntlmodule.c index c45dbe90..9adba8c 100644 --- a/Modules/fcntlmodule.c +++ b/Modules/fcntlmodule.c @@ -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; } |