◐ Shell
clean mode source ↗

gh-90102: Fix pyio return value by cmaloney · Pull Request #125089 · python/cpython

Spotted by @ngnpope.

`isatty` returns False to indicate the file is not a TTY. The C
implementation of _io does that (`Py_RETURN_FALSE`) but I got the
bool backwards in the _pyio implementaiton.

@cmaloney cmaloney deleted the cmaloney/gh90102-fixup branch

October 8, 2024 16:16

efimov-mikhail pushed a commit to efimov-mikhail/cpython that referenced this pull request

Oct 9, 2024
Spotted by @ngnpope.

`isatty` returns False to indicate the file is not a TTY. The C
implementation of _io does that (`Py_RETURN_FALSE`) but I got the
bool backwards in the _pyio implementaiton.