Skip to content

Commit

Permalink
use rt loader
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfv committed Sep 24, 2024
1 parent c0dccc3 commit ebec146
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions conda_forge_tick/update_recipe/v1_recipe/build_number.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,14 @@ def _update_build_number_in_recipe(


def _load_yaml(file: Path):
yaml = _get_yaml_parser(typ="safe")
yaml = _get_yaml_parser(typ="rt")
with file.open("r") as f:
return yaml.load(f)


def _dump_yaml_to_str(data: dict) -> str:
"""Dump a dictionary to a YAML string."""
yaml = _get_yaml_parser(typ=None)
yaml = _get_yaml_parser(typ="rt")
with io.StringIO() as f:
yaml.dump(data, f)
return f.getvalue()
Expand Down

0 comments on commit ebec146

Please sign in to comment.