def _add_format(self, format_name, kwargs):
    if format_name not in file_formats.FORMATS:
      raise ValueError('Invalid format %s.' % format_name)
    format_cls = file_formats.FORMATS[format_name]
    for k in kwargs:
      if k not in format_cls.ARGUMENTS:
        raise ValueError('Invalid argument %s for format %s' %
                         (k, format_name))
    self.formats.append(format_cls.default_instance(**kwargs))
.. deprecated:: 2016.3.0
dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/ext/mapreduce/file_format_parser.py/_Parser._add_format--crossover with--dataset/ETHPy150Open saltstack/salt/salt/modules/virt.py/destroy