

def start(self, sockets=None):
    pumps = self.operation.start(sockets=sockets)
    flags = [p.set_blocking(False) for p in pumps]
    try:
        with WINCHHandler(self):
            self._hijack_tty(pumps)
    finally:
        if flags:
            for (pump, flag) in zip(pumps, flags):
                io.set_blocking(pump, flag)

dataset/ETHPy150Open d11wtq/dockerpty/dockerpty/pty.py PseudoTerminal.start/original