summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2012-03-08 00:17:03 (GMT)
committerBenjamin Peterson <benjamin@python.org>2012-03-08 00:17:03 (GMT)
commit657e9ebef513ed4049a092f6b155d95c4a773a69 (patch)
tree622e1e309175ddd120e1a035d47f52e511773fe4
parent9fc309083ac893619604502fb68136bbc90983b4 (diff)
downloadcpython-657e9ebef513ed4049a092f6b155d95c4a773a69.zip
cpython-657e9ebef513ed4049a092f6b155d95c4a773a69.tar.gz
cpython-657e9ebef513ed4049a092f6b155d95c4a773a69.tar.bz2
make gi_running a boolean
-rw-r--r--Objects/genobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/genobject.c b/Objects/genobject.c
index b065fc7..f25b8a5 100644
--- a/Objects/genobject.c
+++ b/Objects/genobject.c
@@ -542,7 +542,7 @@ static PyGetSetDef gen_getsetlist[] = {
static PyMemberDef gen_memberlist[] = {
{"gi_frame", T_OBJECT, offsetof(PyGenObject, gi_frame), READONLY},
- {"gi_running", T_INT, offsetof(PyGenObject, gi_running), READONLY},
+ {"gi_running", T_BOOL, offsetof(PyGenObject, gi_running), READONLY},
{"gi_code", T_OBJECT, offsetof(PyGenObject, gi_code), READONLY},
{NULL} /* Sentinel */
};