提交 55ece429 编写于 作者: W WuHaobo

polish code style

上级 0681834b
......@@ -46,13 +46,12 @@ def create_attr_dict(yaml_config):
create_attr_dict(yaml_config[key])
else:
yaml_config[key] = value
return
def parse_config(cfg_file):
"""Load a config file into AttrDict"""
with open(cfg_file, 'r') as fopen:
yaml_config = AttrDict(yaml.load(fopen, Loader=yaml.FullLoader))
yaml_config = AttrDict(yaml.load(fopen, Loader=yaml.SafeLoader))
create_attr_dict(yaml_config)
return yaml_config
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册