diff options
| author | Julian Andres Klode <jak@debian.org> | 2010-04-01 18:26:37 +0200 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2010-04-01 18:26:37 +0200 |
| commit | c3d6edddcdcd40ff7477430a20a3e3be7e188963 (patch) | |
| tree | 71744f04bebd432c7ff54fa89b4f116550041d5d /python/pkgrecords.cc | |
| parent | ee15a84128199c2ef23afcf88dbc2f02df08adcc (diff) | |
| download | python-apt-c3d6edddcdcd40ff7477430a20a3e3be7e188963.tar.gz | |
python: Return bool instead of int to Python where possible, looks better.
Diffstat (limited to 'python/pkgrecords.cc')
| -rw-r--r-- | python/pkgrecords.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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[] = |
