summaryrefslogtreecommitdiff
path: root/python/apt_pkgmodule.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/apt_pkgmodule.cc
parentf4fc81750d2dd7df9eda9599d2841ea70ff610ad (diff)
downloadpython-apt-acf0e2af557be18a31570f8e21ccf67233b20004.tar.gz
python/: Put all deprecated Get*() functions into #ifdef COMPAT_0_7.
Diffstat (limited to 'python/apt_pkgmodule.cc')
-rw-r--r--python/apt_pkgmodule.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/python/apt_pkgmodule.cc b/python/apt_pkgmodule.cc
index a34d4720..4ad4e56c 100644
--- a/python/apt_pkgmodule.cc
+++ b/python/apt_pkgmodule.cc
@@ -30,11 +30,13 @@
// newConfiguration - Build a new configuration class /*{{{*/
// ---------------------------------------------------------------------
+#ifdef COMPAT_0_7
static char *doc_newConfiguration = "Construct a configuration instance";
static PyObject *newConfiguration(PyObject *self,PyObject *args)
{
return CppPyObject_NEW<Configuration>(&ConfigurationType);
}
+#endif
/*}}}*/
// Version Wrappers /*{{{*/