mirror of
https://github.com/EttusResearch/uhd.git
synced 2026-10-25 17:36:10 +00:00
ci: replace deprecated ruamel.yaml methods
This commit is contained in:
parent
f215af2ccd
commit
29e45f7a95
@ -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:
|
||||
"""
|
||||
|
||||
Loading…
Reference in New Issue
Block a user