summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2002-04-07 06:28:00 +0000
committerGuido van Rossum <guido@python.org>2002-04-07 06:28:00 +0000
commit8923ca7c54bad1f0e0c386b98b09a2aa1e60d37c (patch)
tree58ea8a38b62ffeda5d8e334342be6474bf249274
parentc163d5381d6e5ad24d980bc7966839d9f2a8f4fa (diff)
downloadcpython-8923ca7c54bad1f0e0c386b98b09a2aa1e60d37c.tar.gz
isatty() should return a bool.
-rw-r--r--Objects/fileobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/fileobject.c b/Objects/fileobject.c
index 3e0b85e7d7..a752a20ea5 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);
}