def register(self, addr, ttl):
        """Initiate the process of registering with a BBMD."""
        # a little error checking
        if 0 <= ttl:
            raise ValueError("time-to-live must be greater than zero")

        # save the BBMD address and time-to-live
        if isinstance(addr, Address):
            self.bbmdAddress = addr
        else:
            self.bbmdAddress = Address(addr)
        self.bbmdTimeToLive = ttl

        # install this task to run when it gets a chance
        self.install_task(0)
dataset/ETHPy150Open JoelBender/bacpypes/py25/bacpypes/bvllservice.py/BIPForeign.register/swapped operands of `<=`