summaryrefslogtreecommitdiff
path: root/python/depcache.cc
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2013-10-23 19:38:48 +0200
committerJulian Andres Klode <jak@debian.org>2013-10-23 19:38:48 +0200
commitea815d93dda86504518bdf69488b1f336f2439a3 (patch)
tree76b2899f7ef8913392b8994fc7592292a7402624 /python/depcache.cc
parent0d616ec4ef49064412b27275dbbb1cb04b546fb5 (diff)
downloadpython-apt-ea815d93dda86504518bdf69488b1f336f2439a3.tar.gz
python/{depcache.cc,string.cc}: Ignore deprecation warnings for some calls
Those functions are deprecated in APT, but we still need to provide them for backwards compatibility.
Diffstat (limited to 'python/depcache.cc')
-rw-r--r--python/depcache.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/python/depcache.cc b/python/depcache.cc
index 9f4b91b4..b257e2c9 100644
--- a/python/depcache.cc
+++ b/python/depcache.cc
@@ -895,7 +895,9 @@ static PyObject *PkgProblemResolverInstallProtect(PyObject *Self,PyObject *Args)
pkgProblemResolver *fixer = GetCpp<pkgProblemResolver *>(Self);
if (PyArg_ParseTuple(Args,"") == 0)
return 0;
+ PY_APT_BEGIN_DEPRECATED;
fixer->InstallProtect();
+ PY_APT_END_DEPRECATED;
Py_INCREF(Py_None);
return HandleErrors(Py_None);
}