summaryrefslogtreecommitdiffstats
path: root/src/python
diff options
context:
space:
mode:
authorLukas Slebodnik <lslebodn@redhat.com>2015-05-23 21:46:45 +0200
committerLukas Slebodnik <lslebodn@redhat.com>2015-09-30 15:00:26 +0200
commit0ffc58e2407f1756b0c09fe31ecd21a75e88e833 (patch)
tree18a2f1510ef40f44b0d9d60c7358fc6d4cb98405 /src/python
parent1ec5ef62d63937727187419b36549edacd98a271 (diff)
downloadsssd-1-11.tar.gz
sssd-1-11.tar.xz
sssd-1-11.zip
pysss_nss_idmap: Use wrapper for older pythonsssd-1-11
PyUnicode_FromString -> sss_python_unicode_from_string Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
Diffstat (limited to 'src/python')
-rw-r--r--src/python/pysss_nss_idmap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/python/pysss_nss_idmap.c b/src/python/pysss_nss_idmap.c
index 0870b0da6..ad4b4a3f7 100644
--- a/src/python/pysss_nss_idmap.c
+++ b/src/python/pysss_nss_idmap.c
@@ -95,7 +95,7 @@ static int do_getsidbyname(PyObject *py_result, PyObject *py_name)
ret = sss_nss_getsidbyname(name, &sid, &id_type);
if (ret == 0) {
ret = add_dict(py_result, py_name, PyString_FromString(SSS_SID_KEY),
- PyUnicode_FromString(sid), PyInt_FromLong(id_type));
+ sss_python_unicode_from_string(sid), PyInt_FromLong(id_type));
}
free(sid);
@@ -117,7 +117,7 @@ static int do_getnamebysid(PyObject *py_result, PyObject *py_sid)
ret = sss_nss_getnamebysid(sid, &name, &id_type);
if (ret == 0) {
ret = add_dict(py_result, py_sid, PyString_FromString(SSS_NAME_KEY),
- PyUnicode_FromString(name), PyInt_FromLong(id_type));
+ sss_python_unicode_from_string(name), PyInt_FromLong(id_type));
}
free(name);
@@ -156,7 +156,7 @@ static int do_getsidbyid(PyObject *py_result, PyObject *py_id)
ret = sss_nss_getsidbyid((uint32_t) id, &sid, &id_type);
if (ret == 0) {
ret = add_dict(py_result, py_id, PyString_FromString(SSS_SID_KEY),
- PyUnicode_FromString(sid), PyInt_FromLong(id_type));
+ sss_python_unicode_from_string(sid), PyInt_FromLong(id_type));
}
free(sid);