From 13d1dd2623dbca56a8147949dbfb2267566f70c0 Mon Sep 17 00:00:00 2001 From: Hartmut Goebel Date: Sat, 30 Mar 2019 19:51:00 +0100 Subject: [PATCH] Fix deprecation warning when calling yaml.load(). This was the message: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe --- feediverse.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/feediverse.py b/feediverse.py index 1be532a..a18b7bd 100755 --- a/feediverse.py +++ b/feediverse.py @@ -50,7 +50,7 @@ def save_config(config, config_file): def read_config(config_file): config = {} with open(config_file) as fh: - config = yaml.load(fh) + config = yaml.load(fh, yaml.SafeLoader) if 'updated' in config: config['updated'] = dateutil.parser.parse(config['updated']) else: