def get_event(node, sock_dir=None, transport='zeromq', opts=None, listen=True, io_loop=None, keep_loop=False, raise_errors=False):
 sock_dir = (sock_dir or opts['sock_dir'])
 if (transport in ('zeromq', 'tcp')):
  if (node == 'master'):
   return MasterEvent(sock_dir, opts, listen=listen, io_loop=io_loop, keep_loop=keep_loop, raise_errors=raise_errors)
  return SaltEvent(node, sock_dir, opts, listen=listen, io_loop=io_loop, keep_loop=keep_loop, raise_errors=raise_errors)
 elif (transport == 'raet'):
  import salt.utils.raetevent
  return salt.utils.raetevent.RAETEvent(node, sock_dir=sock_dir, listen=listen, opts=opts)

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