aboutsummaryrefslogtreecommitdiff
path: root/test/versions.json
diff options
context:
space:
mode:
authorLucas Moura <lucas.moura128@gmail.com>2016-06-18 17:01:47 -0300
committerSergey M․ <dstftw@gmail.com>2016-06-19 03:29:45 +0700
commit7c05097633138459e9bdf7e10738e021b04689a7 (patch)
treeea2b24f8a11c6253bdcd4ed6e1eefbeb74086c42 /test/versions.json
parent589568789f500b7a515355a07efec4bcec0f3243 (diff)
downloadyoutube-dl-7c05097633138459e9bdf7e10738e021b04689a7.tar.xz
[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 'test/versions.json')
0 files changed, 0 insertions, 0 deletions