[JSInterp] Fix bit-shift coercion for player 9c6dfc4a

This commit is contained in:
dirkf 2025-02-06 21:09:00 +00:00
commit 711e72c292
4 changed files with 34 additions and 6 deletions

View file

@ -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',