From ba38b2551f51538885df60b849906de005fb78ed Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Wed, 9 Mar 2011 16:13:34 +0200 Subject: [PATCH] Fix the PyBytes vs PyString compatibility defines - Oops. Quite obviously nobody has even tried to build this with python < 2.6. Whether it'd actually work is another question... --- python/rpmsystem-py.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/python/rpmsystem-py.h b/python/rpmsystem-py.h index eb42dd3..61ec8ce 100644 --- a/python/rpmsystem-py.h +++ b/python/rpmsystem-py.h @@ -24,11 +24,11 @@ typedef Py_ssize_t (*lenfunc)(PyObject *); #endif #if ((PY_MAJOR_VERSION << 8) | (PY_MINOR_VERSION << 0)) < 0x0206 -#define PyXBytes_Check PyString_Check -#define PyXBytes_FromString PyString_FromString -#define PyXBytes_FromStringAndSize PyString_FromStringAndSize -#define PyXBytes_Size PyString_Size -#define PyXBytes_AsString PyString_AsString +#define PyBytes_Check PyString_Check +#define PyBytes_FromString PyString_FromString +#define PyBytes_FromStringAndSize PyString_FromStringAndSize +#define PyBytes_Size PyString_Size +#define PyBytes_AsString PyString_AsString #endif /* For Python 3, use the PyLong type throughout in place of PyInt */ -- 2.7.4