From a3534c01e67e42dcc08e06652f5633d6a07ef886 Mon Sep 17 00:00:00 2001 From: Jintao Date: Sun, 22 Oct 2023 17:00:15 +0800 Subject: [PATCH] Trial, use a different method to write the YAML file --- arc/common.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arc/common.py b/arc/common.py index b85b676274..db43d26a49 100644 --- a/arc/common.py +++ b/arc/common.py @@ -397,7 +397,8 @@ def save_yaml_file(path: str, if '/' in path and os.path.dirname(path) and not os.path.exists(os.path.dirname(path)): os.makedirs(os.path.dirname(path)) with open(path, 'w') as f: - f.write(yaml_str) + yaml.dump(yaml_str, path) + # f.write(yaml_str) def from_yaml(yaml_str: str) -> Union[dict, list]: