def get_section(file_name, section, separator='='):
 inifile = _Ini.get_ini_file(file_name, separator=separator)
 ret = {}
 for (key, value) in six.iteritems(inifile.get(section, {})):
  if (key[0] != '#'):
   ret.update({key: value})
 return ret

def get_section ( file_name , section , separator = '=' ) : inifile = _Ini . get_ini_file ( file_name , separator = separator ) ret = { } for ( key , value ) in six . iteritems ( inifile . get ( section , { } ) ) : if ( key [ 0 ] != '#' ) : ret . update ( { key : value } ) return ret
retrieve a section from an ini file .