[compat] Implement compat.imghdr
Python 3.11 deprecates `imghdr` module
This commit is contained in:
parent
7a96d0b39c
commit
5792c950bf
4 changed files with 25 additions and 12 deletions
|
|
@ -1,11 +1,11 @@
|
|||
import base64
|
||||
import imghdr
|
||||
import os
|
||||
import re
|
||||
import subprocess
|
||||
|
||||
from .common import PostProcessor
|
||||
from .ffmpeg import FFmpegPostProcessor, FFmpegThumbnailsConvertorPP
|
||||
from ..compat import imghdr
|
||||
from ..dependencies import mutagen
|
||||
from ..utils import (
|
||||
Popen,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue