Skip to content

Commit

Permalink
Merge pull request #1031 from lsst/tickets/DM-45045
Browse files Browse the repository at this point in the history
  • Loading branch information
timj authored Jun 28, 2024
2 parents aadb42e + b9b2c41 commit fc5ae51
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/lsst/daf/butler/formatters/yaml.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ def _toBytes(self, inMemoryDataset: Any) -> bytes:

unsafe_dump = self.writeParameters.get("unsafe_dump", False)
if unsafe_dump:
serialized = yaml.dump(inMemoryDataset)
serialized = yaml.dump(inMemoryDataset, sort_keys=False)
else:
serialized = yaml.safe_dump(inMemoryDataset)
serialized = yaml.safe_dump(inMemoryDataset, sort_keys=False)
return serialized.encode()

0 comments on commit fc5ae51

Please sign in to comment.