---
python/rpmts-py.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/python/rpmts-py.c b/python/rpmts-py.c
index ef14420..cc0ed00 100644
--- a/python/rpmts-py.c
+++ b/python/rpmts-py.c
@@ -587,9 +587,9 @@ rpmts_Match(rpmtsObject * s, PyObject * args, PyObject *
kwds)
return NULL;
if (Key) {
- if (PyString_Check(Key)) {
- key = PyString_AsString(Key);
- len = PyString_Size(Key);
+ if (PyBytes_Check(Key)) {
+ key = PyBytes_AsString(Key);
+ len = PyBytes_Size(Key);
} else if (PyInt_Check(Key)) {
lkey = PyInt_AsLong(Key);
key = (char *)&lkey;
--
1.6.2.5
_______________________________________________
Rpm-maint mailing list
[email protected]
http://lists.rpm.org/mailman/listinfo/rpm-maint