def _writen(fd, data):
    while data != '':
        n = os.write(fd, data)
        data = data[n:]
Write all the data to a descriptor.
dataset/ETHPy150Open azoft-dev-team/imagrium/env/Lib/pty.py/_writen