mirror of
https://github.com/k4yt3x/video2x.git
synced 2025-01-30 23:58:11 +00:00
changed YAML loader to Windows compatible FullLoader
This commit is contained in:
parent
b1918a4a8a
commit
c537dd726c
@ -34,7 +34,6 @@ import tempfile
|
|||||||
import time
|
import time
|
||||||
import traceback
|
import traceback
|
||||||
import urllib
|
import urllib
|
||||||
import yaml
|
|
||||||
import zipfile
|
import zipfile
|
||||||
|
|
||||||
# Requests doesn't come with windows, therefore
|
# Requests doesn't come with windows, therefore
|
||||||
@ -225,9 +224,11 @@ class Video2xSetup:
|
|||||||
def _generate_config(self):
|
def _generate_config(self):
|
||||||
""" Generate video2x config
|
""" Generate video2x config
|
||||||
"""
|
"""
|
||||||
|
import yaml
|
||||||
|
|
||||||
# open current video2x configuration file as template
|
# open current video2x configuration file as template
|
||||||
with open(VIDEO2X_CONFIG, 'r') 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()
|
template.close()
|
||||||
|
|
||||||
# configure only the specified drivers
|
# configure only the specified drivers
|
||||||
|
Loading…
Reference in New Issue
Block a user