From 982652a169f3500b49edc4e8ada727bf4bddc767 Mon Sep 17 00:00:00 2001 From: Sung Ho Yoon <55358516+syoon2@users.noreply.github.com> Date: Fri, 8 Jul 2022 06:20:27 +0000 Subject: [PATCH] Specify loader for PyYAML --- cryptosmt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cryptosmt.py b/cryptosmt.py index 54762425..2ddea28f 100644 --- a/cryptosmt.py +++ b/cryptosmt.py @@ -113,7 +113,7 @@ def loadparameters(args): # Check if there is an input file specified if args.inputfile: with open(args.inputfile[0], 'r') as input_file: - doc = yaml.load(input_file) + doc = yaml.load(input_file, Loader=yaml.CLoader) params.update(doc) if "fixedVariables" in doc: fixed_vars = {}