? fcntl-2005-10-06.patch Index: fcntlmodule.c =================================================================== RCS file: /cvsroot/python/python/dist/src/Modules/fcntlmodule.c,v retrieving revision 2.45 diff -u -4 -p -r2.45 fcntlmodule.c --- fcntlmodule.c 28 Jul 2005 05:57:19 -0000 2.45 +++ fcntlmodule.c 30 Sep 2005 10:09:32 -0000 @@ -37,9 +37,9 @@ fcntl_fcntl(PyObject *self, PyObject *ar char *str; int len; char buf[1024]; - if (PyArg_ParseTuple(args, "O&is#:fcntl", + if (PyArg_ParseTuple(args, "O&Is#:fcntl", conv_descriptor, &fd, &code, &str, &len)) { if (len > sizeof buf) { PyErr_SetString(PyExc_ValueError, "fcntl string arg too long"); @@ -58,9 +58,9 @@ fcntl_fcntl(PyObject *self, PyObject *ar PyErr_Clear(); arg = 0; if (!PyArg_ParseTuple(args, - "O&i|i;fcntl requires a file or file descriptor," + "O&i|I;fcntl requires a file or file descriptor," " an integer and optionally a third integer or a string", conv_descriptor, &fd, &code, &arg)) { return NULL; }