def Filter(self, container, unused_args):
    """Filter method that writes the content of the file into a file.

    Args:
      container: Container object which holds all information for one definition
        file. See Container class for details.
      unused_args: No extra arguments required by this filter implementation.

    Returns:
      Container object that has been passed in.
    """
    try:
      f = file(container.absolute_path, 'w')
    except __HOLE__ as e:
      raise FileError('File "%s" could not be opened: %s' % (
          container.absolute_path, e))

    try:
      f.write('\n'.join(container.lines))
    except IOError as e:
      raise FileError('File "%s" could not be written: %s' % (
          container.absolute_path, e))
    else:
      f.close()

    logging.info('Wrote file: %s', container.absolute_path)
    return container
dataset/ETHPy150Open google/capirca/definate/file_filter.py/WriteFileFilter.Filter