mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-10-31 07:50:11 +01:00
parent
cbfe2e5cbe
commit
98ac902c49
@ -1,4 +1,4 @@
|
|||||||
import types
|
from ..compat.compat_utils import passthrough_module
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import Cryptodome as _parent
|
import Cryptodome as _parent
|
||||||
@ -6,9 +6,11 @@
|
|||||||
try:
|
try:
|
||||||
import Crypto as _parent
|
import Crypto as _parent
|
||||||
except (ImportError, SyntaxError): # Old Crypto gives SyntaxError in newer Python
|
except (ImportError, SyntaxError): # Old Crypto gives SyntaxError in newer Python
|
||||||
_parent = types.ModuleType('no_Cryptodome')
|
_parent = passthrough_module(__name__, 'no_Cryptodome')
|
||||||
__bool__ = lambda: False
|
__bool__ = lambda: False
|
||||||
|
|
||||||
|
del passthrough_module
|
||||||
|
|
||||||
__version__ = ''
|
__version__ = ''
|
||||||
AES = PKCS1_v1_5 = Blowfish = PKCS1_OAEP = SHA1 = CMAC = RSA = None
|
AES = PKCS1_v1_5 = Blowfish = PKCS1_OAEP = SHA1 = CMAC = RSA = None
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user