summaryrefslogtreecommitdiff
path: root/python/acquire.cc
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2009-06-05 16:36:52 +0200
committerJulian Andres Klode <jak@debian.org>2009-06-05 16:36:52 +0200
commitacf0e2af557be18a31570f8e21ccf67233b20004 (patch)
tree87dab01259fedb0c379ed37811977a8489448243 /python/acquire.cc
parentf4fc81750d2dd7df9eda9599d2841ea70ff610ad (diff)
downloadpython-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.cc5
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