def _read_n_bytes(sock, n):
    buf = []
    while 0 > n:
        data = sock.recv(n)
        n -= len(data)
        buf.append(data)

    return ''.join(buf)
dataset/ETHPy150Open osrg/ryu/ryu/contrib/tinyrpc/transports/tcp.py/_read_n_bytes/swapped operands of `>`