[cleanup] Deprecate more compat functions (#11439)

Authored by: seproDev
This commit is contained in:
sepro 2024-11-17 00:24:11 +01:00 committed by GitHub
parent 1d253b0a27
commit f95a92b3d0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
38 changed files with 218 additions and 363 deletions

View file

@ -11,13 +11,12 @@ import codecs
import subprocess
from yt_dlp.aes import aes_encrypt, key_expansion
from yt_dlp.utils import intlist_to_bytes
secret_msg = b'Secret message goes here'
def hex_str(int_list):
return codecs.encode(intlist_to_bytes(int_list), 'hex')
return codecs.encode(bytes(int_list), 'hex')
def openssl_encode(algo, key, iv):