Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] yaml: Specify loader to YAML constructors
pyYAML 5.1 is now the distro version. This introduces the FullLoader as the default loader used with yaml.load(…), however the default loader for yaml.add_constructor(…) has not been updated (This is a known issue: yaml/pyyaml#274). This commit specifies the loader to be used when adding constructors, using the FullLoader if it exists and the older Loader if not (i.e. depending on which version of pyYAML is installed). Task: 3958 Signed-off-by: Samuel Searles-Bryant <[email protected]>
- Loading branch information