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/metaindex.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/metaindex.cc')
| -rw-r--r-- | python/metaindex.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/metaindex.cc b/python/metaindex.cc index 2dcade7d..cb066980 100644 --- a/python/metaindex.cc +++ b/python/metaindex.cc @@ -27,7 +27,7 @@ static PyObject *MetaIndexGetDist(PyObject *Self,void*) { static PyObject *MetaIndexGetIsTrusted(PyObject *Self,void*) { metaIndex *meta = GetCpp<metaIndex*>(Self); - return Py_BuildValue("i",(meta->IsTrusted())); + return PyBool_FromLong((meta->IsTrusted())); } static PyObject *MetaIndexGetIndexFiles(PyObject *Self,void*) { |
