Skip to content

Replace imghdr by filetype for python 3.11#269

Open
mathben wants to merge 2 commits into
mailgun:masterfrom
mathben:update_imghdr_python3
Open

Replace imghdr by filetype for python 3.11#269
mathben wants to merge 2 commits into
mailgun:masterfrom
mathben:update_imghdr_python3

Conversation

@mathben
Copy link
Copy Markdown

@mathben mathben commented Mar 17, 2026

keep imghdr for python 2.7 to reduce dependency
imghdr is deprecated from python 3.11
https://docs.python.org/3/library/imghdr.html

Use alternative filetype
Adding test

keep imghdr for python 2.7 to reduce dependency
imghdr is deprecated from python 3.11
https://docs.python.org/3/library/imghdr.html

Use alternative filetype
Adding test
@mathben mathben force-pushed the update_imghdr_python3 branch from e05db27 to a97841a Compare March 17, 2026 07:02
@mathben mathben changed the title Replace imghdr by filetype Replace imghdr by filetype for python 3.11 Mar 17, 2026
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.

1 participant