summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2004-01-04 04:00:13 (GMT)
committerRaymond Hettinger <python@rcn.com>2004-01-04 04:00:13 (GMT)
commit674d56b82e59dfe481f355999b49a7b99b8d763d (patch)
tree9a53f4004cf43881972f4affc3da4b30b271a009
parent816ed1b0bdd3f50375bef334a41e5f20d58910f9 (diff)
downloadcpython-674d56b82e59dfe481f355999b49a7b99b8d763d.zip
cpython-674d56b82e59dfe481f355999b49a7b99b8d763d.tar.gz
cpython-674d56b82e59dfe481f355999b49a7b99b8d763d.tar.bz2
Convert return value to boolean.
-rw-r--r--Modules/gcmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/gcmodule.c b/Modules/gcmodule.c
index f92358b..caf7499 100644
--- a/Modules/gcmodule.c
+++ b/Modules/gcmodule.c
@@ -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__,