mediafile
mediafile copied to clipboard
`imghdr` is deprecated and slated for removal in Python 3.13
The Python standard library will be removing imghdr
in Python 3.13. Per PEP-594 suggested replacements are filetype, puremagic, and python-magic.
Yes indeed—thanks for opening the issue. We should switch sooner rather than later.
(It's too bad about these deprecations, to be honest! I know they were rarely used, but they did their job quietly and well…)
Python 3.13 will be released shortly and that's what we'll be using for the next Debian release (Debian 13).
If this issue isn't fixed before we freeze packages for Debian 13 (sometime in Q1 2025?), we won't be able to ship this library and that'll snowball to other distros like Ubuntu and Linux Mint :(
If someone could have a look at https://github.com/beetbox/mediafile/pull/75 it would be really great.