diff options
author | Lucas Moura <lucas.moura128@gmail.com> | 2016-06-18 17:01:47 -0300 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2016-06-19 03:29:45 +0700 |
commit | 7c05097633138459e9bdf7e10738e021b04689a7 (patch) | |
tree | ea2b24f8a11c6253bdcd4ed6e1eefbeb74086c42 /youtube_dl/extractor/motorsport.py | |
parent | 589568789f500b7a515355a07efec4bcec0f3243 (diff) |
[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.
Diffstat (limited to 'youtube_dl/extractor/motorsport.py')
0 files changed, 0 insertions, 0 deletions