parameters: (self)
docstring: Initialize pub/sub bus.
docstring_summary: Initialize pub/sub bus.
docstring_tokens: Initialize pub / sub bus .
function: 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 = {}
function_tokens: 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 = { }