def write_stdin(self, data):
        # NOTE: parent_fd from os.fork() is a read/write pipe attached to our
        # forked process' stdout/stdin, respectively.
        fd = self.parent_fd if self.using_pty else self.process.stdin.fileno()
        # Try to write, ignoring broken pipes if encountered (implies child
        # process exited before the process piping stdin to us finished;
        # there's nothing we can do about that!)
        try:
            return os.write(fd, data)
        except __HOLE__ as e:
            if 'Broken pipe' not in str(e):
                raise
dataset/ETHPy150Open pyinvoke/invoke/invoke/runners.py/Local.write_stdin