From c5be863910e7da7f8701561646722dd939e08df7 Mon Sep 17 00:00:00 2001 From: Tatsunori Uchino Date: Wed, 24 Apr 2019 16:18:55 +0900 Subject: [PATCH] Make it safer to load YAML --- example/download_speech_corpus.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/download_speech_corpus.py b/example/download_speech_corpus.py index a26d93a..6e231e5 100755 --- a/example/download_speech_corpus.py +++ b/example/download_speech_corpus.py @@ -468,7 +468,7 @@ class Downloader: """ def __init__(self, config_path, user_option): with open(config_path) as f: - self.all_configs = yaml.load(f) + self.all_configs = yaml.safe_load(f) self.user_option = user_option self.global_config = GlobalConfiguration( self.all_configs.get("config", {})