summaryrefslogtreecommitdiff
path: root/python/apt_pkgmodule.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/apt_pkgmodule.cc
parent2d962f13c554681ded71e665a429eb359742531f (diff)
downloadpython-apt-b81133a92aa673d0d9315e9837012e59a988333a.tar.gz
python: Add DeprecationWarning to functions which were replaced by classes.
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 bfa59f8e..3a31440c 100644
--- a/python/apt_pkgmodule.cc
+++ b/python/apt_pkgmodule.cc
@@ -34,6 +34,8 @@
static char *doc_newConfiguration = "Construct a configuration instance";
static PyObject *newConfiguration(PyObject *self,PyObject *args)
{
+ PyErr_WarnEx(PyExc_DeprecationWarning, "apt_pkg.newConfiguration() is "
+ "deprecated. Use apt_pkg.Configuration() instead.", 1);
return CppPyObject_NEW<Configuration>(&ConfigurationType);
}
#endif