From c537dd726c67d9bc8c0e5c7fb9838e35a148a4ba Mon Sep 17 00:00:00 2001 From: k4yt3x Date: Fri, 15 Nov 2019 22:40:19 -0500 Subject: [PATCH] changed YAML loader to Windows compatible FullLoader --- src/video2x_setup.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/video2x_setup.py b/src/video2x_setup.py index 77d0399..15f87c5 100755 --- a/src/video2x_setup.py +++ b/src/video2x_setup.py @@ -34,7 +34,6 @@ import tempfile import time import traceback import urllib -import yaml import zipfile # Requests doesn't come with windows, therefore @@ -225,9 +224,11 @@ class Video2xSetup: def _generate_config(self): """ Generate video2x config """ + import yaml + # open current video2x configuration file as template with open(VIDEO2X_CONFIG, 'r') as template: - template_dict = yaml.load(template, Loader=yaml.CLoader) + template_dict = yaml.load(template, Loader=yaml.FullLoader) template.close() # configure only the specified drivers