Index: python/rpmts-py.c =================================================================== --- python/rpmts-py.c.orig +++ python/rpmts-py.c @@ -1367,7 +1367,7 @@ fprintf(stderr, "*** rpmts_Match(%p) 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)) {