def _sendall(sock, data):
        length = len(data)
        while length:
            try:
                sent = sock.send(data)
            except socket.error, e:
                if e[0] == errno.EAGAIN:
                    select.select([], [sock], [])
                    continue
                else:
                    raise
            data = data[sent:]
            length -= sent
return from the input string the return code of the powershell command
dataset/ETHPy150Open kdart/pycopia/core/pycopia/inet/fcgi.py/Record._sendall--crossover with--dataset/ETHPy150Open saltstack/salt/salt/modules/rdp.py/_parse_return_code_powershell