From 9eabaad5e0f3f20a6bcec0629342584c244a79bc Mon Sep 17 00:00:00 2001 From: Lukas Slebodnik Date: Mon, 9 Feb 2015 19:19:55 +0100 Subject: UTIL: Remove python wrapper sss_python_set_new The function PySet_New is available in python >= 2.6 Reviewed-by: Stephen Gallagher --- src/python/pyhbac.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/python') diff --git a/src/python/pyhbac.c b/src/python/pyhbac.c index f3aaa60f0..3385cc441 100644 --- a/src/python/pyhbac.c +++ b/src/python/pyhbac.c @@ -303,7 +303,7 @@ HbacRuleElement_new(PyTypeObject *type, PyObject *args, PyObject *kwds) return NULL; } - self->category = sss_python_set_new(); + self->category = PySet_New(NULL); self->names = PyList_New(0); self->groups = PyList_New(0); if (!self->names || !self->groups || !self->category) { @@ -945,7 +945,7 @@ py_hbac_rule_validate(HbacRuleObject *self, PyObject *args) } py_is_valid = PyBool_FromLong(is_valid); - py_missing = sss_python_set_new(); + py_missing = PySet_New(NULL); if (!py_missing || !py_is_valid) { PyErr_NoMemory(); goto fail; -- cgit