Skip to content

Commit

Permalink
[.NET] Fix use of removed ruamel.yaml.safe_load
Browse files Browse the repository at this point in the history
  • Loading branch information
speth committed Dec 12, 2023
1 parent afee885 commit aee3092
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion interfaces/sourcegen/sourcegen/_orchestrate.py
Original file line number Diff line number Diff line change
Expand Up @@ -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", {})
Expand Down

0 comments on commit aee3092

Please sign in to comment.