

def attach_endpoint(self, endpoint_):
    old_endpoint = self.endpoint
    if (type(old_endpoint) is not endpoint.Endpoint):
        self.detach_endpoint(old_endpoint)
    self.endpoint = endpoint_
    self.owner.did_connect(self)
    return old_endpoint

dataset/ETHPy150Open EricssonResearch/calvin-base/calvin/actor/actorport.py InPort.attach_endpoint/original