summaryrefslogtreecommitdiff
path: root/python/generic.h
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2009-04-17 18:16:58 +0200
committerJulian Andres Klode <jak@debian.org>2009-04-17 18:16:58 +0200
commite72b1f224007c0f7d6059ee59b0ead6ab2ff628d (patch)
tree46def086cf70c1e7ee8d1e1d7f993a877747aa97 /python/generic.h
parent4bab1d0fb960a10f73cd6b313f7942d7258c8d72 (diff)
downloadpython-apt-e72b1f224007c0f7d6059ee59b0ead6ab2ff628d.tar.gz
* python/generic.h: Force 0.7 compatibility to be off in Python 3 builds
Diffstat (limited to 'python/generic.h')
-rw-r--r--python/generic.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/python/generic.h b/python/generic.h
index 6e66d24c..ae2871e3 100644
--- a/python/generic.h
+++ b/python/generic.h
@@ -54,6 +54,8 @@ typedef int Py_ssize_t;
#define PyString_AsString(op) PyBytes_AsString(PyUnicode_AsUTF8String(op))
#define PyInt_Check PyLong_Check
#define PyInt_AsLong PyLong_AsLong
+// Force 0.7 compatibility to be off in Python 3 builds
+#undef COMPAT_0_7
#else
#define PyBytes_Check PyString_Check
#define PyBytes_AsString PyString_AsString