diff options
| author | Julian Andres Klode <jak@debian.org> | 2009-06-05 16:36:52 +0200 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2009-06-05 16:36:52 +0200 |
| commit | acf0e2af557be18a31570f8e21ccf67233b20004 (patch) | |
| tree | 87dab01259fedb0c379ed37811977a8489448243 /python/acquire.cc | |
| parent | f4fc81750d2dd7df9eda9599d2841ea70ff610ad (diff) | |
| download | python-apt-acf0e2af557be18a31570f8e21ccf67233b20004.tar.gz | |
python/: Put all deprecated Get*() functions into #ifdef COMPAT_0_7.
Diffstat (limited to 'python/acquire.cc')
| -rw-r--r-- | python/acquire.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/python/acquire.cc b/python/acquire.cc index 5f38f7bd..e6a23548 100644 --- a/python/acquire.cc +++ b/python/acquire.cc @@ -297,11 +297,12 @@ PyTypeObject PkgAcquireType = PkgAcquireNew, // tp_new }; - +#ifdef COMPAT_0_7 PyObject *GetAcquire(PyObject *Self,PyObject *Args) { return PkgAcquireNew(&PkgAcquireType,Args,0); } +#endif static PyObject *PkgAcquireFileNew(PyTypeObject *type, PyObject *Args, PyObject * kwds) { @@ -386,6 +387,7 @@ PyTypeObject PkgAcquireFileType = PkgAcquireFileNew, // tp_new }; +#ifdef COMPAT_0_7 char *doc_GetPkgAcqFile = "GetPkgAcqFile(pkgAquire, uri[, md5, size, descr, shortDescr, destDir, destFile]) -> PkgAcqFile\n"; PyObject *GetPkgAcqFile(PyObject *Self, PyObject *Args, PyObject * kwds) @@ -417,3 +419,4 @@ PyObject *GetPkgAcqFile(PyObject *Self, PyObject *Args, PyObject * kwds) return AcqFileObj; } +#endif |
