Commit d043347a authored by Arch Librarian's avatar Arch Librarian

* 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)
parent dfa4cefa
python-apt (0.5.9) unstable; urgency=low
* Fix broken object initialization in sourcelist.cc and srcrecords.cc
(Closes: #215792)
-- Matt Zimmerman <mdz@debian.org> Thu, 25 Dec 2003 12:12:04 -0800
python-apt (0.5.8) unstable; urgency=low
* Adjust build-depends to build with python2.3. No other changes.
......
// -*- 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<PkgSrcRecordsStruct>(Owner,
&PkgSrcRecordsType));
return CppPyObject_NEW<PkgSrcRecordsStruct>(&PkgSrcRecordsType);
}
// -*- 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<PkgSourceListStruct>(Owner,
&PkgSourceListType));
return CppPyObject_NEW<PkgSourceListStruct>(&PkgSourceListType);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment