You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ut...@apache.org on 2020/01/28 10:32:30 UTC
[mynewt-site] branch master updated: Fix warning on deprecated
usage of yaml.load
This is an automated email from the ASF dual-hosted git repository.
utzig pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-site.git
The following commit(s) were added to refs/heads/master by this push:
new d2363d0 Fix warning on deprecated usage of yaml.load
d2363d0 is described below
commit d2363d0da31575109d45dd1598bfb656ce0e7051
Author: Fabio Utzig <ut...@apache.org>
AuthorDate: Tue Jan 28 07:18:45 2020 -0300
Fix warning on deprecated usage of yaml.load
see: https://github.com/yaml/pyyaml/wiki/PyYAML-yaml.load(input)-Deprecation#how-to-disable-the-warning
Signed-off-by: Fabio Utzig <ut...@apache.org>
---
build.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/build.py b/build.py
index 13a6189..30105a6 100755
--- a/build.py
+++ b/build.py
@@ -65,7 +65,7 @@ def find_BSPs():
bsps = []
for bsp in listdir(bsp_dir):
with open(path.join(bsp_dir, bsp, "bsp.yml"), 'r') as f:
- data = yaml.load(f)
+ data = yaml.full_load(f)
for k in ['bsp.name', 'bsp.url', 'bsp.maker', 'bsp.arch']:
# XXX might also skip bsp.arch that starts with 'sim'?
if k not in data: