summaryrefslogtreecommitdiff
path: root/python/sourcelist.cc
diff options
context:
space:
mode:
Diffstat (limited to 'python/sourcelist.cc')
-rw-r--r--python/sourcelist.cc5
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