diff options
| author | Stephan Peijnik <debian@sp.or.at> | 2009-07-07 18:44:10 +0200 |
|---|---|---|
| committer | Stephan Peijnik <debian@sp.or.at> | 2009-07-07 18:44:10 +0200 |
| commit | d28170024ef4d2f01fd9096a3ec785cf424c0846 (patch) | |
| tree | 27ea80e7e736e5b87ae465987bc46acb9118fc71 | |
| parent | 2e2d8f93cdcfc61655bc0895380b33cfa4c78e9f (diff) | |
| download | python-apt-d28170024ef4d2f01fd9096a3ec785cf424c0846.tar.gz | |
Removed separate way of defining Py_ssize_t in progress.h. Now using
method present in generic.h in progress.cc.
| -rw-r--r-- | debian/changelog | 2 | ||||
| -rw-r--r-- | python/progress.cc | 1 | ||||
| -rw-r--r-- | python/progress.h | 6 |
3 files changed, 2 insertions, 7 deletions
diff --git a/debian/changelog b/debian/changelog index db6204ba..ce96cc9e 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,4 +1,4 @@ -python-apt (0.7.10.4) UNRELEASED; urgency=low +python-apt (0.7.11.0) UNRELEASED; urgency=low [ Stephan Peijnik ] * apt/progress/__init__.py: diff --git a/python/progress.cc b/python/progress.cc index cbb49671..94debe40 100644 --- a/python/progress.cc +++ b/python/progress.cc @@ -13,6 +13,7 @@ #include <utility> #include <apt-pkg/acquire-item.h> #include <apt-pkg/acquire-worker.h> +#include "generic.h" #include "progress.h" // generic diff --git a/python/progress.h b/python/progress.h index 659eb113..29243bfc 100644 --- a/python/progress.h +++ b/python/progress.h @@ -15,12 +15,6 @@ #include <apt-pkg/cdrom.h> #include <Python.h> -/* Python 2.4 compatibility */ -#if (PY_VERSION_HEX < 0x02050000) -typedef int Py_ssize_t; -#endif - - /* PyCbObj_BEGIN_ALLOW_THREADS and PyCbObj_END_ALLOW_THREADS are sligthly * modified versions of Py_BEGIN_ALLOW_THREADS and Py_END_ALLOW_THREADS. * Instead of storing the thread state in a function-local variable these |
