utils/parse_cfg.py
def read_config(fpath):
	'''This function reads a configuration file and returns an equivalent dictionary'''

	config = ConfigParser()  #.SafeConfigParser() from python 3.2 SageConfigParser has been renamed to ConfigParser
	with open(fpath, 'r') as fid:
		config.read_file(fid)
	return config._sections
This function reads a configuration file and returns an equivalent dictionary
This function reads a configuration file and returns an equivalent dictionary
This function reads a configuration file and returns an equivalent dictionary
def read_config(fpath):
	config = ConfigParser()  
	with open(fpath, 'r') as fid:
		config.read_file(fid)
	return config._sections
def read_config ( fpath ) : config = ConfigParser ( ) with open ( fpath , 'r' ) as fid : config . read_file ( fid ) return config . _sections
This function reads a configuration file and returns an equivalent dictionary
This function reads a configuration file and returns an equivalent dictionary
'''This function reads a configuration file and returns an equivalent dictionary''' #.SafeConfigParser() from python 3.2 SageConfigParser has been renamed to ConfigParser
fpath