} else {
talloc_report_full(pytalloc_get_mem_ctx(py_obj), stdout);
}
- return Py_None;
+ Py_RETURN_NONE;
}
/* enable null tracking */
PyObject *Py_UNUSED(ignored))
{
talloc_enable_null_tracking();
- return Py_None;
+ Py_RETURN_NONE;
}
/* return the number of talloc blocks */
if (gpo_ptr->ATTR) \
return PyUnicode_FromString(gpo_ptr->ATTR); \
else \
- return Py_None; \
+ Py_RETURN_NONE; \
}
GPO_getter(ds_path)
GPO_getter(file_sys_path)
return NULL;
if (gensec_have_feature(security, feature)) {
- return Py_True;
+ Py_RETURN_TRUE;
}
- return Py_False;
+ Py_RETURN_FALSE;
}
static PyObject *py_gensec_set_max_update_size(PyObject *self, PyObject *args)
break;
}
- return Py_NotImplemented;
+ Py_RETURN_NOTIMPLEMENTED;
}
static void py_descriptor_patch(PyTypeObject *type)
static PyObject *py_is_xattr_supported(PyObject *self,
PyObject *Py_UNUSED(ignored))
{
- return Py_True;
+ Py_RETURN_TRUE;
}
static PyObject *py_wrap_setxattr(PyObject *self, PyObject *args)
PyObject *Py_UNUSED(ignored))
{
#if !defined(HAVE_XATTR_SUPPORT)
- return Py_False;
+ Py_RETURN_FALSE;
#else
- return Py_True;
+ Py_RETURN_TRUE;
#endif
}
static PyObject *py_is_xattr_supported(PyObject *self,
PyObject *Py_UNUSED(ignored))
{
- return Py_True;
+ Py_RETURN_TRUE;
}
static PyObject *py_wrap_setxattr(PyObject *self, PyObject *args)