

def _receive_priority_frame(self, frame):
    '\n        Receive a PRIORITY frame on the connection.\n        '
    events = frame.state_machine.process_input(ConnectionInputs.RECV_PRIORITY)
    event = PriorityUpdated()
    event.stream_id = frame.stream_id
    event.depends_on = frame.depends_on
    event.exclusive = frame.exclusive
    event.weight = (frame.stream_weight + 1)
    if (event.depends_on == frame.stream_id):
        raise ProtocolError(('Stream %d may not depend on itself' % frame.stream_id))
    events.append(event)
    return ([], events)

dataset/ETHPy150Open python-hyper/hyper-h2/h2/connection.py H2Connection._receive_priority_frame/VarMisuse@16/40 `self`->`frame`