diff Modules/cStringIO.c @ 25087:9a178adb4e2d legacy-trunk

SF bug 601775 - some int results that should be bool.
author Guido van Rossum <guido@python.org>
date Sun, 01 Sep 2002 15:06:28 +0000
parents f66b3a3509c7
children 23280a64288e
line wrap: on
line diff
--- a/Modules/cStringIO.c	Sat Aug 31 15:51:04 2002 +0000
+++ b/Modules/cStringIO.c	Sun Sep 01 15:06:28 2002 +0000
@@ -133,7 +133,8 @@
 
         UNLESS (PyArg_ParseTuple(args, ":isatty")) return NULL;
 
-        return PyInt_FromLong(0);
+	Py_INCREF(Py_False);
+        return Py_False;
 }
 
 PyDoc_STRVAR(IO_read__doc__,