code: def isatty(self):
          "return whether the file is connected to a tty or not"
          try:
              return os.isatty(self._fileno)
          except OSError, e:
              raise IOError(*e.argsf isatty(self):
          "return whether the file is connected to a tty or not"
          try:
              return os.isatty(self._fileno)
          except OSError, e:
              raise IOError(*e.args)
docs: return whether the file is connected to a tty or not