summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Objects/fileobject.c2
1 files changed, 1 insertions, 1 deletions
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);
}