True if the file is connected to a TTY device.
(self)
| 1822 | return self._fd |
| 1823 | |
| 1824 | def isatty(self): |
| 1825 | """True if the file is connected to a TTY device.""" |
| 1826 | self._checkClosed() |
| 1827 | return os.isatty(self._fd) |
| 1828 | |
| 1829 | def _isatty_open_only(self): |
| 1830 | """Checks whether the file is a TTY using an open-only optimization. |