1
0
mirror of https://github.com/ytdl-org/youtube-dl synced 2025-12-05 19:14:09 +00:00

[compat] Add compat_thread

This commit is contained in:
dirkf 2025-11-03 20:41:04 +00:00
parent 70b40dd1ef
commit 27867cc814

View File

@ -3637,6 +3637,16 @@ except ImportError:
compat_zstandard = None compat_zstandard = None
# compat_thread
try:
import _thread as compat_thread
except ImportError:
try:
import thread as compat_thread
except ImportError:
import dummy_thread as compat_thread
legacy = [ legacy = [
'compat_HTMLParseError', 'compat_HTMLParseError',
'compat_HTMLParser', 'compat_HTMLParser',
@ -3722,6 +3732,7 @@ __all__ = [
'compat_struct_unpack', 'compat_struct_unpack',
'compat_subprocess_get_DEVNULL', 'compat_subprocess_get_DEVNULL',
'compat_subprocess_Popen', 'compat_subprocess_Popen',
'compat_thread',
'compat_tokenize_tokenize', 'compat_tokenize_tokenize',
'compat_urllib_error', 'compat_urllib_error',
'compat_urllib_parse', 'compat_urllib_parse',