def read_file(filename, mode="rb"):
    """Returns the given file's contents.

    :param str filename: path to file
    :param str mode: open mode (see `open`)

    :returns: absolute path of filename and its contents
    :rtype: tuple

    :raises argparse.ArgumentTypeError: File does not exist or is not readable.

    """
    try:
        filename = os.path.abspath(filename)
        return filename, open(filename, mode).read()
    except __HOLE__ as exc:
        raise argparse.ArgumentTypeError(exc.strerror)
dataset/ETHPy150Open letsencrypt/letsencrypt/certbot/cli.py/read_file