def read_file(myfile):
    """
    Read a file and return the resulting data.

    :arg myfile: A file to read.
    :rtype: str
    """
    try:
        with open(myfile, 'r') as f:
            data = f.read()
        return data
    except __HOLE__ as e:
        raise FailedExecution(
            'Unable to read file {0}'.format(myfile)
        )
dataset/ETHPy150Open elastic/curator/curator/utils.py/read_file