From 887edd6b7c53fde44eb9f9060e09db5cd981ba37 Mon Sep 17 00:00:00 2001 From: Lukas Slebodnik Date: Mon, 9 Feb 2015 19:23:44 +0100 Subject: UTIL: Remove python wrapper sss_python_set_add The function PySet_Add 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/pyhbac.c') diff --git a/src/python/pyhbac.c b/src/python/pyhbac.c index 3385cc441..71e3ea68f 100644 --- a/src/python/pyhbac.c +++ b/src/python/pyhbac.c @@ -388,7 +388,7 @@ HbacRuleElement_init(HbacRuleElement *self, PyObject *args, PyObject *kwargs) return -1; } - if (sss_python_set_add(self->category, tmp) != 0) { + if (PySet_Add(self->category, tmp) != 0) { Py_DECREF(tmp); return -1; } @@ -962,7 +962,7 @@ py_hbac_rule_validate(HbacRuleObject *self, PyObject *args) goto fail; } - if (sss_python_set_add(py_missing, py_attr) != 0) { + if (PySet_Add(py_missing, py_attr) != 0) { /* If the set-add succeeded, it would steal the reference */ Py_DECREF(py_attr); goto fail; -- cgit