

def handleresponses(self):
    self.rpc.fetch_responses()
    ans = self.rpc.first_response()
    if (not ans):
        return False
    (req_id, msg_id, msg_body) = ans
    handled = False
    for i in range(self.nolevels):
        for responder in self.resp_idx[i]:
            if (responder.isReqIdMatch(req_id) and responder.isMsgIdMatch(msg_id)):
                handled = responder.handlemsg(req_id, msg_id, msg_body, handled.rpc, self.parser)
            if handled:
                break
        if handled:
            break
    if (not handled):
        for responder in self.gen_responders:
            handled = responder.handlemsg(req_id, msg_id, msg_body, self.rpc, self.parser)
            if handled:
                break
    self.other_msgs.append((req_id, msg_id, msg_body))
    return True

dataset/ETHPy150Open drbob/pyrs/pyrs/responder.py RsResponderGroup.handleresponses/VarMisuse@109/151 `self`->`handled`