From e65ebe9010f618dfa81d7d26d8bad456accfcd6e Mon Sep 17 00:00:00 2001 From: Kristofer Hallin Date: Wed, 6 Oct 2021 08:41:43 +0200 Subject: Use yaml.safe_load instead of yaml.load --- src/authn.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/authn.py') diff --git a/src/authn.py b/src/authn.py index d57e382..e90118a 100755 --- a/src/authn.py +++ b/src/authn.py @@ -54,7 +54,7 @@ class User: class UserDB: def __init__(self, yamlfile): self._users = {} - for u, d in yaml.load(open(yamlfile)).items(): + for u, d in yaml.safe_load(open(yamlfile)).items(): self._users[u] = User(u, d['pw'], d['authz']) def dump(self): -- cgit v1.1