From 7f7666ff437c4acb267823d3b37ba3248afe4623 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Sun, 7 Apr 2002 06:28:00 +0000 Subject: isatty() should return a bool. --- Objects/fileobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Objects/fileobject.c b/Objects/fileobject.c index 3e0b85e..a752a20 100644 --- a/Objects/fileobject.c +++ b/Objects/fileobject.c @@ -565,7 +565,7 @@ file_isatty(PyFileObject *f) Py_BEGIN_ALLOW_THREADS res = isatty((int)fileno(f->f_fp)); Py_END_ALLOW_THREADS - return PyInt_FromLong(res); + return PyBool_FromLong(res); } -- cgit v0.12