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/pkgsrcrecords.cc | |
| parent | 2d962f13c554681ded71e665a429eb359742531f (diff) | |
| download | python-apt-b81133a92aa673d0d9315e9837012e59a988333a.tar.gz | |
python: Add DeprecationWarning to functions which were replaced by classes.
Diffstat (limited to 'python/pkgsrcrecords.cc')
| -rw-r--r-- | python/pkgsrcrecords.cc | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/python/pkgsrcrecords.cc b/python/pkgsrcrecords.cc index e6b78a83..f75934f9 100644 --- a/python/pkgsrcrecords.cc +++ b/python/pkgsrcrecords.cc @@ -255,14 +255,9 @@ PyTypeObject PkgSrcRecordsType = #ifdef COMPAT_0_7 PyObject *GetPkgSrcRecords(PyObject *Self,PyObject *Args) { -#if 0 - PyObject *Owner; - if (PyArg_ParseTuple(Args,"O!",&PkgCacheType,&Owner) == 0) - return 0; - - return HandleErrors(CppOwnedPyObject_NEW<PkgSrcRecordsStruct>(Owner, - &PkgSrcRecordsType)); -#endif + PyErr_WarnEx(PyExc_DeprecationWarning, "apt_pkg.GetPkgSrcRecords() is " + "deprecated. Please see apt_pkg.SourceRecords() for the " + "replacement.", 1); if (PyArg_ParseTuple(Args,"") == 0) return 0; |
