summaryrefslogtreecommitdiff
path: root/python/cdrom.cc
diff options
context:
space:
mode:
Diffstat (limited to 'python/cdrom.cc')
-rw-r--r--python/cdrom.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/python/cdrom.cc b/python/cdrom.cc
index 9eae49dc..022a4b00 100644
--- a/python/cdrom.cc
+++ b/python/cdrom.cc
@@ -94,7 +94,8 @@ static PyObject *cdrom_ident_old(PyObject *Self,PyObject *Args)
string ident;
bool res = Cdrom.Ident(ident, &progress);
- PyObject *result = Py_BuildValue("(bs)", res, ident.c_str());
+ PyObject *boolres = PyBool_FromLong(res);
+ PyObject *result = Py_BuildValue("(Os)", boolres, ident.c_str());
return HandleErrors(result);
}