def _GenerateEventParameters(self,
                               stream,
                               loader_class=yaml.loader.SafeLoader):
    assert loader_class is not None
    try:
      loader = loader_class(stream)
      while loader.check_event():
        yield (loader.get_event(), loader)
    except yaml.error.YAMLError, e:
      raise yaml_errors.EventListenerYAMLError(e)
Creates a generator that yields event, loader parameter pairs.
dataset/ETHPy150Open CollabQ/CollabQ/.google_appengine/google/appengine/api/yaml_listener.py/EventListener._GenerateEventParameters