diff options
author | dirkf <[email protected]> | 2023-02-19 13:47:49 +0000 |
---|---|---|
committer | dirkf <[email protected]> | 2023-02-19 13:48:58 +0000 |
commit | 57802e632f5a741df6fd9b30a455c32632944489 (patch) | |
tree | 4bcd3dcba4d0c8e84da8edca06ff7b51e8288a91 /youtube_dl/jsinterp.py | |
parent | 2dd6c6edd8e0fc5e45865b8e6d865e35147de772 (diff) | |
download | youtube-dl-57802e632f5a741df6fd9b30a455c32632944489.tar.gz youtube-dl-57802e632f5a741df6fd9b30a455c32632944489.zip |
[jsinterp] Fix dict comprehension for Py2.6
Resolves #31600
Diffstat (limited to 'youtube_dl/jsinterp.py')
-rw-r--r-- | youtube_dl/jsinterp.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/jsinterp.py b/youtube_dl/jsinterp.py index 60fa2b1b9..a3bc42a61 100644 --- a/youtube_dl/jsinterp.py +++ b/youtube_dl/jsinterp.py @@ -262,7 +262,7 @@ class JSInterpreter(object): if not expr: return # collections.Counter() is ~10% slower in both 2.7 and 3.9 - counters = {k: 0 for k in _MATCHING_PARENS.values()} + counters = dict((k, 0) for k in _MATCHING_PARENS.values()) start, splits, pos, delim_len = 0, 0, 0, len(delim) - 1 in_quote, escaping, skipping = None, False, 0 after_op, in_regex_char_group, skip_re = True, False, 0 |