1
0
mirror of https://gitlab.com/ytdl-org/youtube-dl.git synced 2025-11-12 16:16:16 -05:00
Files
youtube-dl/youtube_dl/jsinterp.py
Lucas Moura 7c05097633 [jsinterp] Avoid double key lookup for setting new key
In order to add a new key to both __objects and __functions dicts on jsinterp.py, it is
necessary to first verify if a key was present and if not, create the key and
assign it to a value.

However, this can be done with a single step using dict setdefault method.
2016-06-19 03:29:45 +07:00

8.6 KiB