diff options
| author | Julian Andres Klode <jak@debian.org> | 2013-08-26 13:39:57 +0200 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2013-09-11 20:14:52 +0200 |
| commit | 044322b4dca1135671a93ebfe1601214f7f6e655 (patch) | |
| tree | 6b9ba04f4aab7f24bfead1da769aa6707140975c /python/generic.h | |
| parent | 14086582c87c4297fd14bd3c3831afd3cd1d2833 (diff) | |
| download | python-apt-044322b4dca1135671a93ebfe1601214f7f6e655.tar.gz | |
Remove old API compatibility C++ support code
Diffstat (limited to 'python/generic.h')
| -rw-r--r-- | python/generic.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/python/generic.h b/python/generic.h index 914456e2..e4679c6c 100644 --- a/python/generic.h +++ b/python/generic.h @@ -58,8 +58,6 @@ typedef int Py_ssize_t; #define PyInt_Check PyLong_Check #define PyInt_AsLong PyLong_AsLong #define PyInt_FromLong PyLong_FromLong -// Force 0.7 compatibility to be off in Python 3 builds -#undef COMPAT_0_7 #else // Compatibility for Python 2.5 and previous. #if (PY_MAJOR_VERSION == 2 && PY_MINOR_VERSION <= 5) @@ -251,10 +249,6 @@ inline PyObject *MkPyNumber(char o) { return PyInt_FromLong(o); } inline PyObject *MkPyNumber(double o) { return PyFloat_FromDouble(o); } -# ifdef COMPAT_0_7 -PyObject *_PyAptObject_getattro(PyObject *self, PyObject *attr); -# else # define _PyAptObject_getattro 0 -# endif #endif |
