mirror of
https://github.com/python/cpython
synced 2026-09-29 09:55:31 +03:00
isatty() should return a bool.
This commit is contained in:
parent
c45929ecb6
commit
7f7666ff43
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue