diff options
| author | Carlos Solano <csolano@gmail.com> | 2020-02-03 14:52:53 +0100 |
|---|---|---|
| committer | Carlos Solano <csolano@gmail.com> | 2020-02-03 14:54:01 +0100 |
| commit | aa67364ad02f052f70f826e1b89901e81461991a (patch) | |
| tree | 467537e80410e4ddc2154042faeccfa7e9275990 | |
| parent | 125f793334c255d3662ba9eda3b66e339f8b1b1a (diff) | |
crowdin: use safe_load(fh) instead of load(fh, Loader=yaml.FullLoader)
Change-Id: Ie56cd53005e368377df0afe47917e9880ed27d44
| -rwxr-xr-x | crowdin_sync.py | 2 |
1 files changed, 1 insertions, 1 deletions
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'] |
