<s> from ConfigParser import SafeConfigParser <EOL> def load_ini_file ( file_name , defaults = { } ) : <EOL> config = SafeConfigParser ( ) <EOL> config . readfp ( open ( file_name ) ) <EOL> results = { } <EOL> for section in config . sections ( ) : <EOL> for key , value in config . items ( section ) : <EOL> results [ section + '<STR_LIT:.>' + key ] = value <EOL> results . update ( defaults ) <EOL> return results </s>
