__builtin__.file.isatty

file.isatty() → true or false. True if the file is connected to a tty device.

Navigation