def load_cfg(cfg_filename):
if is_ini(cfg_filename):<EOL><INDENT>return convert_ini(cfg_filename)<EOL><DEDENT>else:<EOL><INDENT>with open(cfg_filename) as f:<EOL><INDENT>return yaml.load(f)<EOL><DEDENT><DEDENT>
:type cfg_filename: str