def HandleEvent(self, event, loader=None):

    if event.__class__ not in _EVENT_METHOD_MAP:
      raise yaml_errors.IllegalEvent(
            "%s is not a valid PyYAML class" % event.__class__.__name__)

    if event.__class__ in self._event_method_map:
      self._event_method_map[event.__class__](event, loader)
Handle individual PyYAML event.
dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/api/yaml_listener.py/EventListener.HandleEvent