diff options
| author | Julian Andres Klode <jak@debian.org> | 2009-06-21 14:05:49 +0200 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2009-06-21 14:05:49 +0200 |
| commit | b81133a92aa673d0d9315e9837012e59a988333a (patch) | |
| tree | 927146f8511c5a777103a2ff2b4b56ab11c6291f /python/cache.cc | |
| parent | 2d962f13c554681ded71e665a429eb359742531f (diff) | |
| download | python-apt-b81133a92aa673d0d9315e9837012e59a988333a.tar.gz | |
python: Add DeprecationWarning to functions which were replaced by classes.
Diffstat (limited to 'python/cache.cc')
| -rw-r--r-- | python/cache.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/python/cache.cc b/python/cache.cc index 35c8b78f..a8da6696 100644 --- a/python/cache.cc +++ b/python/cache.cc @@ -1371,6 +1371,8 @@ PyTypeObject RDepListType = #ifdef COMPAT_0_7 PyObject *TmpGetCache(PyObject *Self,PyObject *Args) { + PyErr_WarnEx(PyExc_DeprecationWarning, "apt_pkg.GetCache() is deprecated. " + "Please see apt_pkg.Cache() for the replacement.", 1); return PkgCacheNew(&PkgCacheType,Args,0); } #endif |
