summaryrefslogtreecommitdiff
path: root/python/rpmstrpool-py.c
diff options
context:
space:
mode:
Diffstat (limited to 'python/rpmstrpool-py.c')
-rw-r--r--python/rpmstrpool-py.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/rpmstrpool-py.c b/python/rpmstrpool-py.c
index 356bd1de5..5c25d15fb 100644
--- a/python/rpmstrpool-py.c
+++ b/python/rpmstrpool-py.c
@@ -44,8 +44,8 @@ static PyObject *strpool_id2str(rpmstrPoolObject *s, PyObject *item)
const char *str = rpmstrPoolStr(s->pool, id);
if (str)
- ret = PyBytes_FromString(str);
- else
+ ret = utf8FromString(str);
+ else
PyErr_SetObject(PyExc_KeyError, item);
}
return ret;