From aee30922054556730e188aba9b0f1b819ef2e7bd Mon Sep 17 00:00:00 2001 From: Ray Speth Date: Mon, 20 Nov 2023 19:31:33 -0500 Subject: [PATCH] [.NET] Fix use of removed ruamel.yaml.safe_load --- interfaces/sourcegen/sourcegen/_orchestrate.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/interfaces/sourcegen/sourcegen/_orchestrate.py b/interfaces/sourcegen/sourcegen/_orchestrate.py index 6ee68e56a5..8556f62191 100644 --- a/interfaces/sourcegen/sourcegen/_orchestrate.py +++ b/interfaces/sourcegen/sourcegen/_orchestrate.py @@ -23,7 +23,8 @@ def generate_source(lang: str, out_dir: str): config = {} if config_path.exists(): with config_path.open() as config_file: - config = ruamel.yaml.safe_load(config_file) + reader = ruamel.yaml.YAML(typ="safe") + config = reader.load(config_file) ignore_files: List[str] = config.get("ignore_files", []) ignore_funcs: Dict[str, List[str]] = config.get("ignore_funcs", {})