serial/generate_config.py specify full loader (#11667)

- fixes #11666
This commit is contained in:
Daniel Agar 2019-03-16 11:19:01 -04:00 committed by GitHub
parent b54ca67de9
commit 471e1bc866
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -241,7 +241,7 @@ PARAM_DEFINE_{param_type}({name}, {default_value});
for yaml_file in args.config_files:
with open(yaml_file, 'r') as stream:
try:
yaml_config = yaml.load(stream)
yaml_config = yaml.load(stream, Loader=yaml.Loader)
serial_commands.extend(parse_yaml_serial_config(yaml_config))
# TODO: additional params should be parsed in a separate script