summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2002-04-07 06:28:00 (GMT)
committerGuido van Rossum <guido@python.org>2002-04-07 06:28:00 (GMT)
commit7f7666ff437c4acb267823d3b37ba3248afe4623 (patch)
tree2852786b998049b563c476f3eef9e2a23845f390 /Objects
parentc45929ecb6637def1e45372b4e93a6e2439963c5 (diff)
downloadcpython-7f7666ff437c4acb267823d3b37ba3248afe4623.zip
cpython-7f7666ff437c4acb267823d3b37ba3248afe4623.tar.gz
cpython-7f7666ff437c4acb267823d3b37ba3248afe4623.tar.bz2
isatty() should return a bool.
Diffstat (limited to 'Objects')
-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);
}