Kaydet (Commit) fdbeb5a4 authored tarafından Neal Norwitz's avatar Neal Norwitz

#546155, remove posix_int() it is not used

üst c72737e7
......@@ -459,22 +459,6 @@ static PyObject * os2_error(int code)
/* POSIX generic methods */
static PyObject *
posix_int(PyObject *args, char *format, int (*func)(int))
{
int fd;
int res;
if (!PyArg_ParseTuple(args, format, &fd))
return NULL;
Py_BEGIN_ALLOW_THREADS
res = (*func)(fd);
Py_END_ALLOW_THREADS
if (res < 0)
return posix_error();
Py_INCREF(Py_None);
return Py_None;
}
static PyObject *
posix_fildes(PyObject *fdobj, int (*func)(int))
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment