summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/python/pysss_nss_idmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/python/pysss_nss_idmap.c b/src/python/pysss_nss_idmap.c
index 0d596390b..c938ff7ad 100644
--- a/src/python/pysss_nss_idmap.c
+++ b/src/python/pysss_nss_idmap.c
@@ -236,7 +236,7 @@ static PyObject *check_args(enum lookup_type type, PyObject *args)
return NULL;
}
- if (PySequence_Check(obj)) {
+ if (PyList_Check(obj) || PyTuple_Check(obj)) {
len = PySequence_Size(obj);
for(i=0; i < len; i++) {
py_value = PySequence_GetItem(obj, i);