From 29e45f7a957dee4596e1c088420dc1eb27bd0945 Mon Sep 17 00:00:00 2001 From: Matthew Crymble Date: Tue, 24 Oct 2023 11:53:21 -0500 Subject: [PATCH] ci: replace deprecated ruamel.yaml methods --- tools/changeset_testlist.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/changeset_testlist.py b/tools/changeset_testlist.py index 59c9d2caa..3236565ed 100644 --- a/tools/changeset_testlist.py +++ b/tools/changeset_testlist.py @@ -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: """