diff options
Diffstat (limited to 'youtube_dl/compat.py')
-rw-r--r-- | youtube_dl/compat.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/youtube_dl/compat.py b/youtube_dl/compat.py index c621f7476..26b655fb6 100644 --- a/youtube_dl/compat.py +++ b/youtube_dl/compat.py @@ -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', |