Skip to content

Commit

Permalink
roundtripdumper
Browse files Browse the repository at this point in the history
  • Loading branch information
hulkoba committed Jun 5, 2024
1 parent 6d38216 commit 015668b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion conda_smithy/configure_feedstock.py
Original file line number Diff line number Diff line change
Expand Up @@ -765,7 +765,9 @@ def dump_subspace_config_files(
yaml.representer.add_representer(tuple, SafeRepresenter.represent_list)

# yaml.Representer.add_representer(OrderedDict, yaml.Representer.represent_dict)
yaml.representer.add_representer(OrderedDict, lambda dumper, data: dumper.represent_mapping('tag:yaml.org,2002:map', data.items()))
yaml.add_representer(OrderedDict, yaml.RoundTripDumper.represent_dict, Dumper=yaml.RoundTripDumper)

# yaml.add_representer(OrderedDict, lambda dumper, data: dumper.represent_mapping('tag:yaml.org,2002:map', data.items()))

# yaml.representer.add_representer(OrderedDict, yaml_represent_ordered_dict)

Expand Down

0 comments on commit 015668b

Please sign in to comment.