mirror of https://github.com/yt-dlp/yt-dlp
[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.pull/8/head
parent
589568789f
commit
7c05097633
Loading…
Reference in New Issue