From a726313e76e15f523a2e68066fccc61b8a31ba02 Mon Sep 17 00:00:00 2001 From: Gaurav Nelson Date: Mon, 19 Apr 2021 17:01:06 +1000 Subject: [PATCH] fixed YAMLLoadWarning --- build.py | 2 +- build_for_portal.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build.py b/build.py index c11daf2cf6..44fb9b4279 100755 --- a/build.py +++ b/build.py @@ -164,7 +164,7 @@ def parse_build_config(config): """ config = os.path.expanduser(config) with open(config, "r") as f: - data = list(yaml.load_all(f)) + data = list(yaml.load_all(f,Loader=yaml.FullLoader)) for book in data: book_name = book['Name'] diff --git a/build_for_portal.py b/build_for_portal.py index e86962563e..8f3614ff21 100644 --- a/build_for_portal.py +++ b/build_for_portal.py @@ -157,7 +157,7 @@ def parse_build_config(config): """ config = os.path.expanduser(config) with open(config, "r") as f: - data = list(yaml.load_all(f)) + data = list(yaml.load_all(f,Loader=yaml.FullLoader)) for book in data: book_name = book['Name']