summaryrefslogtreecommitdiff
path: root/python/pkgmanager.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/pkgmanager.cc
parentf4fc81750d2dd7df9eda9599d2841ea70ff610ad (diff)
downloadpython-apt-acf0e2af557be18a31570f8e21ccf67233b20004.tar.gz
python/: Put all deprecated Get*() functions into #ifdef COMPAT_0_7.
Diffstat (limited to 'python/pkgmanager.cc')
-rw-r--r--python/pkgmanager.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/python/pkgmanager.cc b/python/pkgmanager.cc
index cae2b580..7752ce5b 100644
--- a/python/pkgmanager.cc
+++ b/python/pkgmanager.cc
@@ -36,10 +36,12 @@ static PyObject *PkgManagerNew(PyTypeObject *type,PyObject *Args,PyObject *kwds)
return PkgManagerObj;
}
+#ifdef COMPAT_0_7
PyObject *GetPkgManager(PyObject *Self,PyObject *Args)
{
return PkgManagerNew(&PkgManagerType,Args,0);
}
+#endif
static PyObject *PkgManagerGetArchives(PyObject *Self,PyObject *Args)