mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2025-08-14 10:37:36 -07:00
[JSInterp] Fix bit-shift coercion for player 9c6dfc4a
This commit is contained in:
parent
26b6f15d14
commit
711e72c292
4 changed files with 34 additions and 6 deletions
|
@ -3116,17 +3116,21 @@ else:
|
|||
compat_kwargs = lambda kwargs: kwargs
|
||||
|
||||
|
||||
# compat_numeric_types
|
||||
try:
|
||||
compat_numeric_types = (int, float, long, complex)
|
||||
except NameError: # Python 3
|
||||
compat_numeric_types = (int, float, complex)
|
||||
|
||||
|
||||
# compat_integer_types
|
||||
try:
|
||||
compat_integer_types = (int, long)
|
||||
except NameError: # Python 3
|
||||
compat_integer_types = (int, )
|
||||
|
||||
# compat_int
|
||||
compat_int = compat_integer_types[-1]
|
||||
|
||||
if sys.version_info < (2, 7):
|
||||
def compat_socket_create_connection(address, timeout, source_address=None):
|
||||
|
@ -3532,6 +3536,7 @@ __all__ = [
|
|||
'compat_http_client',
|
||||
'compat_http_server',
|
||||
'compat_input',
|
||||
'compat_int',
|
||||
'compat_integer_types',
|
||||
'compat_itertools_count',
|
||||
'compat_itertools_zip_longest',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue