def _read_ini_config(ini_file_contents: str) -> Dict[str, str]:
    """
    Parses the given ini file contents and converts to a dictionary of key/value pairs.
    :param ini_file_contents: the contents of the ini file
    :return: dictionary where the variable names are key and their values are the values
    """
    config = configparser.ConfigParser()
    config.optionxform = str
    config.read_string(_FAKE_SECTION + ini_file_contents)

    items = {}
    for section in config.sections():
        items.update(dict(config[section].items()))

    return items
def _read_ini_config ( ini_file_contents : str ) -> Dict [ str , str ] : config = configparser . ConfigParser ( ) config . optionxform = str config . read_string ( _FAKE_SECTION + ini_file_contents ) items = { } for section in config . sections ( ) : items . update ( dict ( config [ section ] . items ( ) ) ) return items
Parses the given ini file contents and converts to a dictionary of key/value pairs.
    :param ini_file_contents: the contents of the ini file
    :return: dictionary where the variable names are key and their values are the values