From d043347ad1c11127b129eb13ceb3579dfc48fce3 Mon Sep 17 00:00:00 2001 From: Arch Librarian Date: Wed, 24 Nov 2004 10:00:38 +0000 Subject: * Fix broken object initialization in sourcelist.cc and... Author: mdz Date: 2003-12-26 17:04:22 GMT * Fix broken object initialization in sourcelist.cc and srcrecords.cc (Closes: #215792) --- python/pkgsrcrecords.cc | 9 ++------- python/sourcelist.cc | 9 ++------- 2 files changed, 4 insertions(+), 14 deletions(-) (limited to 'python') diff --git a/python/pkgsrcrecords.cc b/python/pkgsrcrecords.cc index 8f6dbbcf..f9a420b9 100644 --- a/python/pkgsrcrecords.cc +++ b/python/pkgsrcrecords.cc @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: pkgsrcrecords.cc,v 1.1 2003/07/23 02:20:24 mdz Exp $ +// $Id: pkgsrcrecords.cc,v 1.2 2003/12/26 17:04:22 mdz Exp $ /* ###################################################################### Package Records - Wrapper for the package records functions @@ -108,11 +108,6 @@ PyTypeObject PkgSrcRecordsType = PyObject *GetPkgSrcRecords(PyObject *Self,PyObject *Args) { - PyObject *Owner; -// if (PyArg_ParseTuple(Args,"O!",&PkgCacheType,&Owner) == 0) -// return 0; - - return HandleErrors(CppOwnedPyObject_NEW(Owner, - &PkgSrcRecordsType)); + return CppPyObject_NEW(&PkgSrcRecordsType); } diff --git a/python/sourcelist.cc b/python/sourcelist.cc index 0bee8d8c..6f039244 100644 --- a/python/sourcelist.cc +++ b/python/sourcelist.cc @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: sourcelist.cc,v 1.1 2003/07/23 02:20:24 mdz Exp $ +// $Id: sourcelist.cc,v 1.2 2003/12/26 17:04:22 mdz Exp $ /* ###################################################################### Package Records - Wrapper for the package records functions @@ -73,11 +73,6 @@ PyTypeObject PkgSourceListType = PyObject *GetPkgSourceList(PyObject *Self,PyObject *Args) { - PyObject *Owner; -// if (PyArg_ParseTuple(Args,"O!",&PkgCacheType,&Owner) == 0) -// return 0; - - return HandleErrors(CppOwnedPyObject_NEW(Owner, - &PkgSourceListType)); + return CppPyObject_NEW(&PkgSourceListType); } -- cgit v1.2.3