def unpublish(forwarder):
        """when forwarders die, we need to unregister them"""
        try:
            del published[forwarder.device]
        except KeyError:
            pass
        else:
            log.info("unpublish: %s" % (forwarder))
dataset/ETHPy150Open pyserial/pyserial/examples/port_publisher.py/unpublish/original