mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Convert return value to boolean.
This commit is contained in:
parent
816ed1b0bd
commit
674d56b82e
1 changed files with 1 additions and 1 deletions
|
@ -845,7 +845,7 @@ PyDoc_STRVAR(gc_isenabled__doc__,
|
|||
static PyObject *
|
||||
gc_isenabled(PyObject *self, PyObject *noargs)
|
||||
{
|
||||
return Py_BuildValue("i", enabled);
|
||||
return PyBool_FromLong((long)enabled);
|
||||
}
|
||||
|
||||
PyDoc_STRVAR(gc_collect__doc__,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue