(self)
Initialize pub/sub bus.
Initialize pub/sub bus.
Initialize pub / sub bus .
def __init__(self):
        """Initialize pub/sub bus."""
        self.execv = False
        self.state = states.STOPPED
        channels = 'start', 'stop', 'exit', 'graceful', 'log', 'main'
        self.listeners = dict(
            (channel, set())
            for channel in channels
        )
        self._priorities = {}
def __init__ ( self ) : self . execv = False self . state = states . STOPPED channels = 'start' , 'stop' , 'exit' , 'graceful' , 'log' , 'main' self . listeners = dict ( ( channel , set ( ) ) for channel in channels ) self . _priorities = { }