[Rpm-maint] [PATCH 11/15] Fixup another key refernce to use PyBytes rather than PyString
David Malcolm
dmalcolm at redhat.com
Thu Oct 15 19:15:05 UTC 2009
---
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
More information about the Rpm-maint
mailing list