diff options
| author | Julian Andres Klode <jak@debian.org> | 2009-06-05 16:36:52 +0200 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2009-06-05 16:36:52 +0200 |
| commit | acf0e2af557be18a31570f8e21ccf67233b20004 (patch) | |
| tree | 87dab01259fedb0c379ed37811977a8489448243 /python/sourcelist.cc | |
| parent | f4fc81750d2dd7df9eda9599d2841ea70ff610ad (diff) | |
| download | python-apt-acf0e2af557be18a31570f8e21ccf67233b20004.tar.gz | |
python/: Put all deprecated Get*() functions into #ifdef COMPAT_0_7.
Diffstat (limited to 'python/sourcelist.cc')
| -rw-r--r-- | python/sourcelist.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/python/sourcelist.cc b/python/sourcelist.cc index daf0c08c..1c05d83e 100644 --- a/python/sourcelist.cc +++ b/python/sourcelist.cc @@ -159,8 +159,9 @@ PyTypeObject PkgSourceListType = PkgSourceListNew, // tp_new }; +#ifdef COMPAT_0_7 PyObject *GetPkgSourceList(PyObject *Self,PyObject *Args) { - return CppPyObject_NEW<pkgSourceList*>(&PkgSourceListType,new pkgSourceList()); + return PkgSourceListNew(&PkgSourceListType,Args,0); } - +#endif |
