

def handle_connect_cb(self, handle, connection, **kwargs):
    status = kwargs.get('status', None)
    peer_port_id = kwargs.get('peer_port_id', None)
    self.send_response(connection, connection, (json.dumps({
        'peer_port_id': peer_port_id,
    }) if status else None), status=status.status)

dataset/ETHPy150Open EricssonResearch/calvin-base/calvin/runtime/north/calvincontrol.py CalvinControl.handle_connect_cb/VarMisuse@43/59 `handle`->`connection`