Use Py_RETURN_TRUE in py_lutimes() and py_set_linux_file_attr() so
that the reference counting is handled correctly.
Remove orphaned, static (and empty) set_linux_file_attr().
Signed-off-by: Rob Browning <rlb@defaultvalue.org>
}
-static int set_linux_file_attr(const char *path, unsigned long attr)
-{
-}
-
-
static PyObject *py_get_linux_file_attr(PyObject *self, PyObject *args)
{
int rc;
}
close(fd);
- return Py_True;
+ Py_RETURN_TRUE;
}
if(rc != 0)
return PyErr_SetFromErrnoWithFilename(PyExc_IOError, filename);
- return Py_True;
+ Py_RETURN_TRUE;
}