From 35d9b7bb67e6d4c4b219b3cb55f9ab7dc19576d1 Mon Sep 17 00:00:00 2001 From: Christophe Vandeplas Date: Tue, 23 Apr 2024 10:38:47 +0200 Subject: [PATCH] fix: [interpol] use yaml.safe_load --- tools/gen_interpol_dwvat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/gen_interpol_dwvat.py b/tools/gen_interpol_dwvat.py index 6607e2e..aaf6acc 100755 --- a/tools/gen_interpol_dwvat.py +++ b/tools/gen_interpol_dwvat.py @@ -42,7 +42,7 @@ contains _data folder with ''' with open(os.path.join(args.path, '_data', 'entities.yaml'), 'r') as f: - entities_data = yaml.load(f, Loader=yaml.BaseLoader) + entities_data = yaml.safe_load(f) try: with open(os.path.join('..', 'galaxies', 'interpol-entities.json'), 'r') as f: