From afa4510fdcfe9326aa023c72e506d593f106c101 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniele=20Trifir=C3=B2?= Date: Mon, 27 Jul 2020 16:11:49 +0200 Subject: [PATCH] workaround for #4281 --- dvc/utils/yaml.py | 1 + 1 file changed, 1 insertion(+) diff --git a/dvc/utils/yaml.py b/dvc/utils/yaml.py index 70fb46f31a..e43838e254 100644 --- a/dvc/utils/yaml.py +++ b/dvc/utils/yaml.py @@ -44,6 +44,7 @@ def parse_yaml_for_update(text, path): def dump_yaml(path, data): with open(path, "w", encoding="utf-8") as fd: yaml = YAML() + yaml.version = (1, 1) # Workaround for #4281 yaml.default_flow_style = False # tell Dumper to represent OrderedDict as # normal dict