From 340ea904bb6f6cb78071f0d5992283dbe22fe2fb Mon Sep 17 00:00:00 2001 From: u8slvn Date: Sat, 6 Jul 2019 21:06:35 +0200 Subject: [PATCH] feature: update yaml dependency --- requirements.txt | 2 +- rerwatcher/__init__.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/requirements.txt b/requirements.txt index 0e7981e..06b0cd5 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,5 @@ requests==2.20.0 lxml==4.2.1 luma.led_matrix==1.0.5 -pyyaml==3.13 +pyyaml>=4.2b1 loguru==0.3.0 diff --git a/rerwatcher/__init__.py b/rerwatcher/__init__.py index 04cc82d..e6750f4 100644 --- a/rerwatcher/__init__.py +++ b/rerwatcher/__init__.py @@ -23,7 +23,7 @@ def load_config(): """ with open('config.yml', 'r') as ymlconf: - config = yaml.load(ymlconf) + config = yaml.load(ymlconf, Loader=yaml.FullLoader) for section in config: for param in config[section]: