mirror of
https://github.com/python/cpython.git
synced 2025-10-17 04:08:28 +00:00
SF bug 601775 - some int results that should be bool.
This commit is contained in:
parent
29a6d449ef
commit
674deb2eea
2 changed files with 3 additions and 2 deletions
|
@ -133,7 +133,8 @@ IO_isatty(IOobject *self, PyObject *args) {
|
|||
|
||||
UNLESS (PyArg_ParseTuple(args, ":isatty")) return NULL;
|
||||
|
||||
return PyInt_FromLong(0);
|
||||
Py_INCREF(Py_False);
|
||||
return Py_False;
|
||||
}
|
||||
|
||||
PyDoc_STRVAR(IO_read__doc__,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue