summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorPaul Nasrat <pnasrat@redhat.com>2007-05-16 14:45:24 +0100
committerPaul Nasrat <pnasrat@redhat.com>2007-05-16 14:45:24 +0100
commit832fe4f01865cd17ab9393fc48b960206da223b0 (patch)
tree9188fca9875697c2021dab6a7f7fafa447f03d29 /python
parent485c8dac0dcce8db9be173692d2d34f4cf3efab9 (diff)
downloadlibrpm-tizen-832fe4f01865cd17ab9393fc48b960206da223b0.tar.gz
librpm-tizen-832fe4f01865cd17ab9393fc48b960206da223b0.tar.bz2
librpm-tizen-832fe4f01865cd17ab9393fc48b960206da223b0.zip
dbmatch keys can be unicode objects also (#219008)
Jeremy Katz <katzj@redhat.com>
Diffstat (limited to 'python')
-rw-r--r--python/rpmts-py.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/rpmts-py.c b/python/rpmts-py.c
index cc0261614..e697303cd 100644
--- a/python/rpmts-py.c
+++ b/python/rpmts-py.c
@@ -1367,7 +1367,7 @@ fprintf(stderr, "*** rpmts_Match(%p) ts %p\n", s, s->ts);
if (Key) {
/*@-branchstate@*/
- if (PyString_Check(Key)) {
+ if (PyString_Check(Key) || PyUnicode_Check(Key)) {
key = PyString_AsString(Key);
len = PyString_Size(Key);
} else if (PyInt_Check(Key)) {