From aa67364ad02f052f70f826e1b89901e81461991a Mon Sep 17 00:00:00 2001 From: Carlos Solano Date: Mon, 3 Feb 2020 14:52:53 +0100 Subject: crowdin: use safe_load(fh) instead of load(fh, Loader=yaml.FullLoader) Change-Id: Ie56cd53005e368377df0afe47917e9880ed27d44 --- crowdin_sync.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crowdin_sync.py b/crowdin_sync.py index 60f9f1e..8f4bfbe 100755 --- a/crowdin_sync.py +++ b/crowdin_sync.py @@ -67,7 +67,7 @@ def add_target_paths(config_files, repo, base_path, project_path): for f in config_files: fh = open(f, "r") try: - config = yaml.load(fh, Loader=yaml.FullLoader) + config = yaml.safe_load(fh) for tf in config['files']: if project_path in tf['source']: target_path = tf['translation'] -- cgit v1.2.3