summaryrefslogtreecommitdiff
path: root/python/rpmsystem-py.h
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2011-03-09 16:13:34 +0200
committerPanu Matilainen <pmatilai@redhat.com>2011-03-09 16:13:34 +0200
commitba38b2551f51538885df60b849906de005fb78ed (patch)
treef572ba12c2014f09378d4223093e860b34672e9c /python/rpmsystem-py.h
parentcb61d8a89c70c1771947c10984eeab2141133bd4 (diff)
downloadrpm-ba38b2551f51538885df60b849906de005fb78ed.tar.gz
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...
Diffstat (limited to 'python/rpmsystem-py.h')
-rw-r--r--python/rpmsystem-py.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/python/rpmsystem-py.h b/python/rpmsystem-py.h
index eb42dd33f..61ec8ce3f 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 */