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

Reduce conditionals with a dictionary #10

Merged
merged 4 commits into from
Jun 23, 2023
Merged

Conversation

cthoyt
Copy link
Contributor

@cthoyt cthoyt commented Mar 24, 2023

This PR reduces the need for several conditions by creating a dictionary mapping from mimetypes to the RDFLib output serialization key

I'm a bit worried that there were some implicit assumptions about what happens when mimetypes aren't simple that need to be addressed

@vemonet
Copy link
Owner

vemonet commented Jun 23, 2023

Nice improvements, thanks a lot!

@vemonet vemonet merged commit 9e74485 into vemonet:main Jun 23, 2023
@cthoyt cthoyt deleted the more-constants branch June 23, 2023 13:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants