]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
wic: don't use dict.keys and dict.has_key
authorEd Bartosh <ed.bartosh@linux.intel.com>
Wed, 4 May 2016 13:06:16 +0000 (16:06 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 14 May 2016 06:26:42 +0000 (07:26 +0100)
commit003df7dfb932c551953fbf1bd769b3c31bd16fb4
treea508854a79bc7d7a741047e51cd8a7c27c5ea4fe
parent5b14eb8d68aaca82de4f8f6bcb28ad6f4a5125d0
wic: don't use dict.keys and dict.has_key

Replaced calls of dict.keys and dict.has_key methods with the
'key in dict' statement. 'key in dict' is more pythonic, faster
and readable. dict.has_key doesn't exist in Python 3.

[YOCTO #9412]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/lib/wic/imager/baseimager.py
scripts/lib/wic/plugin.py
scripts/lib/wic/utils/partitionedfs.py