gh-91520: Rewrite imghdr inlining for clarity and completeness#91521
Merged
warsaw merged 5 commits intopython:mainfrom Apr 15, 2022
Merged
gh-91520: Rewrite imghdr inlining for clarity and completeness#91521warsaw merged 5 commits intopython:mainfrom
warsaw merged 5 commits intopython:mainfrom
Conversation
* Move MIMEImage class back closer to the top of the file since it's the important thing. * Use a decorate to mark a given rule function and simplify the rule function names for clarity. * Copy over all the imghdr test data files into the email package's test data directory. This way when imghdr is actually removed, it won't affect the MIMEImage guessing tests. * Rewrite and extend the MIMEImage tests to test for all supported auto-detected MIME image subtypes. * Remove the now redundant PyBanner048.gif data file.
Member
Author
Member
Probably, this mention of |
arhadthedev
reviewed
Apr 14, 2022
arhadthedev
reviewed
Apr 14, 2022
brettcannon
reviewed
Apr 14, 2022
I like it, thanks. Co-authored-by: Oleg Iarygin <dralife@yandex.ru>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
important thing.
names for clarity.
directory. This way when imghdr is actually removed, it won't affect the
MIMEImage guessing tests.
auto-detected MIME image subtypes.
Automerge-Triggered-By: GH:warsaw
#91520