summaryrefslogtreecommitdiffstats
path: root/src/python
diff options
context:
space:
mode:
authorLukas Slebodnik <lslebodn@redhat.com>2015-02-09 19:19:55 +0100
committerJakub Hrozek <jhrozek@redhat.com>2015-02-25 08:38:20 +0100
commit9eabaad5e0f3f20a6bcec0629342584c244a79bc (patch)
tree64452cb16adc499902cabd2ceb7b3ae3d885096d /src/python
parentd6c3de740c7bed8b007805d6a313220d8d974ee5 (diff)
downloadsssd-9eabaad5e0f3f20a6bcec0629342584c244a79bc.tar.gz
sssd-9eabaad5e0f3f20a6bcec0629342584c244a79bc.tar.xz
sssd-9eabaad5e0f3f20a6bcec0629342584c244a79bc.zip
UTIL: Remove python wrapper sss_python_set_new
The function PySet_New is available in python >= 2.6 Reviewed-by: Stephen Gallagher <sgallagh@redhat.com>
Diffstat (limited to 'src/python')
-rw-r--r--src/python/pyhbac.c4
1 files changed, 2 insertions, 2 deletions
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;