From c3d6edddcdcd40ff7477430a20a3e3be7e188963 Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Thu, 1 Apr 2010 18:26:37 +0200 Subject: python: Return bool instead of int to Python where possible, looks better. --- python/pkgrecords.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python/pkgrecords.cc') diff --git a/python/pkgrecords.cc b/python/pkgrecords.cc index 0e00edcd..a53af394 100644 --- a/python/pkgrecords.cc +++ b/python/pkgrecords.cc @@ -44,7 +44,7 @@ static PyObject *PkgRecordsLookup(PyObject *Self,PyObject *Args) Struct.Last = &Struct.Records.Lookup(pkgCache::VerFileIterator(*Cache,Cache->VerFileP+Index)); // always return true (to make it consistent with the pkgsrcrecords object - return Py_BuildValue("i", 1); + return PyBool_FromLong(1); } static PyMethodDef PkgRecordsMethods[] = -- cgit v1.2.3