(conf)
return new_dict
Convert the config class to a dictionary.
Convert the config class to a dictionary.
Convert the config class to a dictionary .
def config_to_dict(conf):
    """Convert the config class to a dictionary."""
    new_dict = {}
    for header, variables in iteritems(conf):
        new_dict[header] = {}
        for variable, info in iteritems(variables):
            new_dict[header][variable] = info['type'](info['value'])
    return new_dict
def config_to_dict ( conf ) : new_dict = { } for header , variables in iteritems ( conf ) : new_dict [ header ] = { } for variable , info in iteritems ( variables ) : new_dict [ header ] [ variable ] = info [ 'type' ] ( info [ 'value' ] ) return new_dict