summaryrefslogtreecommitdiff
path: root/python/indexrecords.cc
diff options
context:
space:
mode:
Diffstat (limited to 'python/indexrecords.cc')
-rw-r--r--python/indexrecords.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/indexrecords.cc b/python/indexrecords.cc
index 80960160..ac4a7c2e 100644
--- a/python/indexrecords.cc
+++ b/python/indexrecords.cc
@@ -41,7 +41,7 @@ static PyObject *indexrecords_load(PyObject *self,PyObject *args)
if (PyArg_ParseTuple(args, "s", &filename) == 0)
return 0;
indexRecords *records = GetCpp<indexRecords*>(self);
- return HandleErrors(Py_BuildValue("i", records->Load(filename)));
+ return HandleErrors(PyBool_FromLong(records->Load(filename)));
}
static char *indexrecords_lookup_doc = "lookup(metakey)\n\n"