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

gh-91217: deprecate imghdr #91461

Merged
merged 14 commits into from Apr 13, 2022
Merged

gh-91217: deprecate imghdr #91461

merged 14 commits into from Apr 13, 2022

Conversation

brettcannon
Copy link
Member

@brettcannon brettcannon commented Apr 12, 2022

Automerge-Triggered-By: GH:warsaw

@brettcannon brettcannon requested a review from a team as a code owner Apr 12, 2022
Doc/whatsnew/3.11.rst Outdated Show resolved Hide resolved
Doc/library/email.mime.rst Outdated Show resolved Hide resolved
Lib/email/mime/image.py Outdated Show resolved Hide resolved
brettcannon and others added 3 commits Apr 12, 2022
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
@brettcannon brettcannon changed the title gh-91217: deprecate-imghdr gh-91217: deprecate imghdr Apr 12, 2022
hugovk
hugovk approved these changes Apr 12, 2022
Doc/includes/email-mime.py Outdated Show resolved Hide resolved
Doc/includes/email-mime.py Outdated Show resolved Hide resolved
Doc/library/email.mime.rst Outdated Show resolved Hide resolved
@bedevere-bot
Copy link

bedevere-bot commented Apr 12, 2022

When you're done making the requested changes, leave the comment: I have made the requested changes; please review again.

@brettcannon
Copy link
Member Author

brettcannon commented Apr 13, 2022

I have made the requested changes; please review again.

@bedevere-bot
Copy link

bedevere-bot commented Apr 13, 2022

Thanks for making the requested changes!

@warsaw: please review the changes made to this pull request.

@bedevere-bot bedevere-bot requested a review from warsaw Apr 13, 2022
Remove unnecessary `warnings` import.
warsaw
warsaw approved these changes Apr 13, 2022
Copy link
Member

@warsaw warsaw left a comment

LGTM. I'd like to do a cleaning pass through the inlined code, but I'll do that in a follow up PR.

@warsaw warsaw added the 🤖 automerge PR will be merged once it's been approved and all CI passed label Apr 13, 2022
@warsaw warsaw merged commit 3fc57e8 into python:main Apr 13, 2022
13 checks passed
@bedevere-bot
Copy link

bedevere-bot commented Apr 13, 2022

@warsaw: Please replace # with GH- in the commit message next time. Thanks!

@brettcannon brettcannon deleted the deprecate-imghdr branch Apr 13, 2022
warsaw added a commit to warsaw/cpython that referenced this pull request Apr 14, 2022
warsaw added a commit that referenced this pull request Apr 15, 2022
* Rewrite imghdr inlining for clarity and completeness

* 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.

* See #91461 (comment)

Co-authored-by: Oleg Iarygin <dralife@yandex.ru>

Co-authored-by: Oleg Iarygin <dralife@yandex.ru>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤖 automerge PR will be merged once it's been approved and all CI passed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants