diff options
| author | Guido van Rossum <guido@python.org> | 2002-04-07 06:28:00 +0000 |
|---|---|---|
| committer | Guido van Rossum <guido@python.org> | 2002-04-07 06:28:00 +0000 |
| commit | 8923ca7c54bad1f0e0c386b98b09a2aa1e60d37c (patch) | |
| tree | 58ea8a38b62ffeda5d8e334342be6474bf249274 | |
| parent | c163d5381d6e5ad24d980bc7966839d9f2a8f4fa (diff) | |
| download | cpython-8923ca7c54bad1f0e0c386b98b09a2aa1e60d37c.tar.gz | |
isatty() should return a bool.
| -rw-r--r-- | Objects/fileobject.c | 2 |
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); } |
