From 0c95d96f32f38b95c5685d8cdd88e977a370647a Mon Sep 17 00:00:00 2001 From: Jack Robison Date: Thu, 16 Jul 2020 11:44:26 -0400 Subject: [PATCH] update pyyaml requirement to 5.3.1 --- lbry/conf.py | 5 ++--- setup.py | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/lbry/conf.py b/lbry/conf.py index cc1eaa98e..11246d095 100644 --- a/lbry/conf.py +++ b/lbry/conf.py @@ -5,9 +5,8 @@ import typing import logging from argparse import ArgumentParser from contextlib import contextmanager - -import yaml from appdirs import user_data_dir, user_config_dir +import yaml from lbry.error import InvalidCurrencyError from lbry.dht import constants from lbry.wallet.coinselection import STRATEGIES @@ -334,7 +333,7 @@ class ConfigFileAccess: cls = type(self.configuration) with open(self.path, 'r') as config_file: raw = config_file.read() - serialized = yaml.load(raw) or {} + serialized = yaml.safe_load(raw) or {} for key, value in serialized.items(): attr = getattr(cls, key, None) if attr is None: diff --git a/setup.py b/setup.py index e8fa1b759..6dcedbbb5 100644 --- a/setup.py +++ b/setup.py @@ -46,7 +46,7 @@ setup( 'msgpack==0.6.1', 'prometheus_client==0.7.1', 'ecdsa==0.13.3', - 'pyyaml==4.2b1', + 'pyyaml==5.3.1', 'docopt==0.6.2', 'hachoir', 'multidict==4.6.1',