From 7c68030ac530835db5a15a48b0529c22055ebd08 Mon Sep 17 00:00:00 2001 From: sitiom Date: Tue, 16 Mar 2021 11:05:51 +0800 Subject: [PATCH] Resolve YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. --- Tips-and-Tricks.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tips-and-Tricks.md b/Tips-and-Tricks.md index 640e0cd..6a3edd3 100644 --- a/Tips-and-Tricks.md +++ b/Tips-and-Tricks.md @@ -176,7 +176,7 @@ import os CONFIG="install.conf.yaml" stream = open(CONFIG, "r") -conf = yaml.load(stream) +conf = yaml.load(stream, yaml.FullLoader) for section in conf: if 'link' in section: