summaryrefslogtreecommitdiff
path: root/python/pkgrecords.cc
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2009-06-21 14:05:49 +0200
committerJulian Andres Klode <jak@debian.org>2009-06-21 14:05:49 +0200
commitb81133a92aa673d0d9315e9837012e59a988333a (patch)
tree927146f8511c5a777103a2ff2b4b56ab11c6291f /python/pkgrecords.cc
parent2d962f13c554681ded71e665a429eb359742531f (diff)
downloadpython-apt-b81133a92aa673d0d9315e9837012e59a988333a.tar.gz
python: Add DeprecationWarning to functions which were replaced by classes.
Diffstat (limited to 'python/pkgrecords.cc')
-rw-r--r--python/pkgrecords.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/python/pkgrecords.cc b/python/pkgrecords.cc
index 8beefffd..1e36259d 100644
--- a/python/pkgrecords.cc
+++ b/python/pkgrecords.cc
@@ -214,6 +214,9 @@ PyTypeObject PkgRecordsType =
#ifdef COMPAT_0_7
PyObject *GetPkgRecords(PyObject *Self,PyObject *Args)
{
+ PyErr_WarnEx(PyExc_DeprecationWarning, "apt_pkg.GetPkgRecords() is "
+ "deprecated. Please see apt_pkg.Records() for the "
+ "replacement.", 1);
return PkgRecordsNew(&PkgRecordsType,Args,0);
}
#endif