summaryrefslogtreecommitdiffstats
path: root/Modules/cStringIO.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2002-09-01 15:06:28 (GMT)
committerGuido van Rossum <guido@python.org>2002-09-01 15:06:28 (GMT)
commit674deb2eeaeb8358415457413502e3b5851a7010 (patch)
tree5811a5f6c9c6aebca97ef685f74597138532263b /Modules/cStringIO.c
parent29a6d449ef8ea42009215318f8d43a569aed2cf7 (diff)
downloadcpython-674deb2eeaeb8358415457413502e3b5851a7010.zip
cpython-674deb2eeaeb8358415457413502e3b5851a7010.tar.gz
cpython-674deb2eeaeb8358415457413502e3b5851a7010.tar.bz2
SF bug 601775 - some int results that should be bool.
Diffstat (limited to 'Modules/cStringIO.c')
-rw-r--r--Modules/cStringIO.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/cStringIO.c b/Modules/cStringIO.c
index dfab89a..aebdf67 100644
--- a/Modules/cStringIO.c
+++ b/Modules/cStringIO.c
@@ -133,7 +133,8 @@ IO_isatty(IOobject *self, PyObject *args) {
UNLESS (PyArg_ParseTuple(args, ":isatty")) return NULL;
- return PyInt_FromLong(0);
+ Py_INCREF(Py_False);
+ return Py_False;
}
PyDoc_STRVAR(IO_read__doc__,