From 8e4228ede1ecb97ddd5de5939f05b0899eaa5ae5 Mon Sep 17 00:00:00 2001 From: Pedro Ferreira Date: Wed, 12 Jun 2019 21:09:48 +0200 Subject: [PATCH] Specify default Loader Not specifyin one is now deprecated behaviour. --- ssb/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ssb/util.py b/ssb/util.py index 45aa995..39e51e5 100644 --- a/ssb/util.py +++ b/ssb/util.py @@ -17,7 +17,7 @@ def tag(key): def load_ssb_secret(): """Load SSB keys from ~/.ssb""" with open(os.path.expanduser('~/.ssb/secret')) as f: - config = yaml.load(f) + config = yaml.load(f, Loader=yaml.SafeLoader) if config['curve'] != 'ed25519': raise ConfigException('Algorithm not known: ' + config['curve'])