def detach_endpoint(self, endpoint_):
        if not self.endpoint == endpoint_:
            _log.warning("Inport: No such endpoint")
            return
        self.owner.did_disconnect(self)
        self.endpoint = endpoint.Endpoint(self, former_peer_id=endpoint_.get_peer()[1])
dataset/ETHPy150Open EricssonResearch/calvin-base/calvin/actor/actorport.py/InPort.detach_endpoint/original