ci: replace deprecated ruamel.yaml methods

This commit is contained in:
Matthew Crymble 2023-10-24 11:53:21 -05:00 committed by Aki Tomita
parent f215af2ccd
commit 29e45f7a95

View File

@ -78,7 +78,8 @@ def load_rules(rule_file):
Return the rules as a Python list.
"""
with open(rule_file, 'r', encoding='utf-8') as rfd:
return yaml.safe_load(rfd)
y = yaml.YAML(typ='safe', pure=True)
return y.load(rfd)
class RuleApplier:
"""