(handlers)
return config_dict
Returns configuration data gathered by given handlers as a dict.

    :param list[ConfigHandler] handlers: Handlers list,
        usually from parse_configuration()

    :rtype: dict
Returns configuration data gathered by given handlers as a dict.
Returns configuration data gathered by given handlers as a dict .
def configuration_to_dict(handlers):
    """Returns configuration data gathered by given handlers as a dict.

    :param list[ConfigHandler] handlers: Handlers list,
        usually from parse_configuration()

    :rtype: dict
    """
    config_dict = defaultdict(dict)

    for handler in handlers:
        for option in handler.set_options:
            value = _get_option(handler.target_obj, option)
            config_dict[handler.section_prefix][option] = value

    return config_dict
def configuration_to_dict ( handlers ) : config_dict = defaultdict ( dict ) for handler in handlers : for option in handler . set_options : value = _get_option ( handler . target_obj , option ) config_dict [ handler . section_prefix ] [ option ] = value return config_dict