Fix deprecation in YAML parsing

This commit is contained in:
Andrea Cardaci 2019-07-29 16:33:44 +02:00
parent a7798bcfe2
commit ebe1181b75

View File

@ -7,7 +7,7 @@ import yaml
def parse_yaml(path): def parse_yaml(path):
with open(path) as fs: with open(path) as fs:
text = fs.read() text = fs.read()
return yaml.load_all(text) return yaml.load_all(text, Loader=yaml.SafeLoader)
def build_schema(): def build_schema():
function_names = next(parse_yaml('_data/functions.yml')).keys() function_names = next(parse_yaml('_data/functions.yml')).keys()