Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use dicts instead of OrderedDicts #133

Merged
merged 6 commits into from
Aug 15, 2024
Merged

Use dicts instead of OrderedDicts #133

merged 6 commits into from
Aug 15, 2024

Conversation

fsoubelet
Copy link
Member

Since Python 3.7 the standard dicts are guaranteed to be ordered.

Since Python 3.8 one can also call reversed() on them.

There is no longer any advantage for us to using an OrderedDict for the headers, since we only cared that loading a file then directly writing to file would result in the exact same headers order.

This PR changes the headers to be dicts, as well as the tests to expect dict types. I suggest a patch release.

@fsoubelet fsoubelet added Type: Feature A (suggetion for a) new feature or enhancement in functionality. Minor labels Aug 15, 2024
@fsoubelet fsoubelet requested a review from JoschD August 15, 2024 15:18
@fsoubelet fsoubelet self-assigned this Aug 15, 2024
@fsoubelet fsoubelet merged commit c0c54ba into master Aug 15, 2024
21 checks passed
@fsoubelet fsoubelet deleted the simpledicts branch August 15, 2024 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Feature A (suggetion for a) new feature or enhancement in functionality.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants