def read_profile(name):
    """Get a named profile from the CONFIG_FILE.

    Args:

        name
            The name of the profile to load.

    Returns:
        A dictionary with the profile's ``repo`` and ``token`` values.

    """
    config = configparser.ConfigParser()
    config.read(CONFIG_FILE)
    profile = config[name]
    repo = profile["repo"]
    token = profile["token"]
    return {"repo": repo, "token": token}
def read_profile ( name ) : config = configparser . ConfigParser ( ) config . read ( CONFIG_FILE ) profile = config [ name ] repo = profile [ "repo" ] token = profile [ "token" ] return { "repo" : repo , "token" : token }
Get a named profile from the CONFIG_FILE.

    Args:

        name
            The name of the profile to load.

    Returns:
        A dictionary with the profile's ``repo`` and ``token`` values.