diff options
author | Lukas Slebodnik <lslebodn@redhat.com> | 2015-02-09 19:23:44 +0100 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2015-02-25 08:38:23 +0100 |
commit | 887edd6b7c53fde44eb9f9060e09db5cd981ba37 (patch) | |
tree | 783438c1b813dc04d0dda77182345fd324c46a3c /src/python/pyhbac.c | |
parent | 9eabaad5e0f3f20a6bcec0629342584c244a79bc (diff) | |
download | sssd-887edd6b7c53fde44eb9f9060e09db5cd981ba37.tar.gz sssd-887edd6b7c53fde44eb9f9060e09db5cd981ba37.tar.xz sssd-887edd6b7c53fde44eb9f9060e09db5cd981ba37.zip |
UTIL: Remove python wrapper sss_python_set_add
The function PySet_Add is available in python >= 2.6
Reviewed-by: Stephen Gallagher <sgallagh@redhat.com>
Diffstat (limited to 'src/python/pyhbac.c')
-rw-r--r-- | src/python/pyhbac.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |