◐ Shell
clean mode source ↗

Message 407427 - Python tracker

isatty() is a system call on linux. Most open()s are files, and we're already getting the size of the file. If it has a size, then we know it's not a atty, and can avoid calling it.