1
0
mirror of https://github.com/yt-dlp/yt-dlp synced 2025-12-17 06:35:42 +07:00

[compat] Implement compat.imghdr

Python 3.11 deprecates `imghdr` module
This commit is contained in:
pukkandan
2022-05-17 19:39:28 +05:30
parent 7a96d0b39c
commit 5792c950bf
4 changed files with 25 additions and 12 deletions

View File

@@ -806,7 +806,7 @@ def to_stderr(self, message, only_once=False):
if self.params.get('logger'):
self.params['logger'].error(message)
else:
self._write_string(f'{self._bidi_workaround(message)}\n' , self._out_files.error, only_once=only_once)
self._write_string(f'{self._bidi_workaround(message)}\n', self._out_files.error, only_once=only_once)
def _send_console_code(self, code):
if compat_os_name == 'nt' or not self._out_files.console: