diff options
author | df <fieldhouse@gmx.net> | 2021-11-02 11:18:39 +0000 |
---|---|---|
committer | dirkf <fieldhouse@gmx.net> | 2022-01-30 00:05:54 +0000 |
commit | 96f87aaa3b34d80bc72097a7475d8093849091fc (patch) | |
tree | d15de84dff0d793a460b68bdcdbdf9ad539f3f41 /youtube_dl/compat.py | |
parent | 5f5de51a499f732a6e687f32037e130cbdc50c8f (diff) | |
download | youtube-dl-96f87aaa3b34d80bc72097a7475d8093849091fc.tar.xz |
Back-port JS interpreter upgrade from yt-dlp PR #1437
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 29e0d3a02..2004a405a 100644 --- a/youtube_dl/compat.py +++ b/youtube_dl/compat.py @@ -21,6 +21,10 @@ import subprocess import sys import xml.etree.ElementTree +try: + import collections.abc as compat_collections_abc +except ImportError: + import collections as compat_collections_abc try: import urllib.request as compat_urllib_request @@ -3025,6 +3029,7 @@ __all__ = [ 'compat_b64decode', 'compat_basestring', 'compat_chr', + 'compat_collections_abc', 'compat_cookiejar', 'compat_cookiejar_Cookie', 'compat_cookies', |