def get_master_event(opts, sock_dir, listen=True, io_loop=None, raise_errors=False):
 if (opts['transport'] in ('zeromq', 'tcp', 'detect')):
  return MasterEvent(sock_dir, opts, listen=listen, io_loop=io_loop, raise_errors=raise_errors)
 elif (opts['transport'] == 'raet'):
  import salt.utils.raetevent
  return salt.utils.raetevent.MasterEvent(opts=opts, sock_dir=sock_dir, listen=listen)

def get_master_event ( opts , sock_dir , listen = True , io_loop = None , raise_errors = False ) : if ( opts [ 'transport' ] in ( 'zeromq' , 'tcp' , 'detect' ) ) : return MasterEvent ( sock_dir , opts , listen = listen , io_loop = io_loop , raise_errors = raise_errors ) elif ( opts [ 'transport' ] == 'raet' ) : import salt . utils . raetevent return salt . utils . raetevent . MasterEvent ( opts = opts , sock_dir = sock_dir , listen = listen )
return an event object suitable for the named transport .