summaryrefslogtreecommitdiff
path: root/python/sourcelist.cc
diff options
context:
space:
mode:
authorArch Librarian <arch@canonical.com>2004-11-24 10:00:38 +0000
committerArch Librarian <arch@canonical.com>2004-11-24 10:00:38 +0000
commitd043347ad1c11127b129eb13ceb3579dfc48fce3 (patch)
tree1f9263eb2dbe289ecc7f750a054e8f2a3f82a881 /python/sourcelist.cc
parentdfa4cefaaab691880e2c24e603244b0485a181e0 (diff)
downloadpython-apt-d043347ad1c11127b129eb13ceb3579dfc48fce3.tar.gz
* 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)
Diffstat (limited to 'python/sourcelist.cc')
-rw-r--r--python/sourcelist.cc9
1 files changed, 2 insertions, 7 deletions
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<PkgSourceListStruct>(Owner,
- &PkgSourceListType));
+ return CppPyObject_NEW<PkgSourceListStruct>(&PkgSourceListType);
}