From b4d2f64b75b74525af92cf6ff42b1b341a4a2e53 Mon Sep 17 00:00:00 2001 From: vtexier <vit@free.fr> Date: Sun, 22 Dec 2019 12:35:37 +0100 Subject: [PATCH] [fix] fix pyyaml warning https://github.com/yaml/pyyaml/wiki/PyYAML-yaml.load(input)-Deprecation --- src/sakia/constants.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sakia/constants.py b/src/sakia/constants.py index fa6d0cf9..c3e5a92d 100644 --- a/src/sakia/constants.py +++ b/src/sakia/constants.py @@ -6,7 +6,7 @@ MAX_CONFIRMATIONS = 6 with open( os.path.join(os.path.dirname(__file__), "root_servers.yml"), "r", encoding="utf-8" ) as stream: - ROOT_SERVERS = yaml.load(stream) + ROOT_SERVERS = yaml.load(stream, Loader=yaml.FullLoader) with open( os.path.join(os.path.dirname(__file__), "g1_licence.html"), "r", encoding="utf-8" -- GitLab