Commit 674d56b8 authored by Raymond Hettinger's avatar Raymond Hettinger

Convert return value to boolean.

parent 816ed1b0
...@@ -845,7 +845,7 @@ PyDoc_STRVAR(gc_isenabled__doc__, ...@@ -845,7 +845,7 @@ PyDoc_STRVAR(gc_isenabled__doc__,
static PyObject * static PyObject *
gc_isenabled(PyObject *self, PyObject *noargs) gc_isenabled(PyObject *self, PyObject *noargs)
{ {
return Py_BuildValue("i", enabled); return PyBool_FromLong((long)enabled);
} }
PyDoc_STRVAR(gc_collect__doc__, PyDoc_STRVAR(gc_collect__doc__,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment