From 215de0c10cac7a4f9d56df741c5cb2e4f506da79 Mon Sep 17 00:00:00 2001 From: Rathan Kumar Date: Fri, 10 Sep 2021 15:11:54 +0530 Subject: [PATCH] fixed YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated --- faicon/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/faicon/models.py b/faicon/models.py index 689beb8b..bdbf8b75 100644 --- a/faicon/models.py +++ b/faicon/models.py @@ -20,7 +20,7 @@ def get_icon_list(): check FAICON_YAML_FILE setting.".format(YAML_FILE) ) with open(file, 'r', encoding='utf-8') as stream: - data_loaded = yaml.load(stream) + data_loaded = yaml.load(stream, Loader=yaml.FullLoader) return data_loaded