diff options
author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2016-05-04 16:06:16 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-05-14 07:26:42 +0100 |
commit | 003df7dfb932c551953fbf1bd769b3c31bd16fb4 (patch) | |
tree | a508854a79bc7d7a741047e51cd8a7c27c5ea4fe /scripts/lib/wic/imager/baseimager.py | |
parent | 5b14eb8d68aaca82de4f8f6bcb28ad6f4a5125d0 (diff) | |
download | openembedded-core-003df7dfb932c551953fbf1bd769b3c31bd16fb4.tar.gz openembedded-core-003df7dfb932c551953fbf1bd769b3c31bd16fb4.tar.bz2 openembedded-core-003df7dfb932c551953fbf1bd769b3c31bd16fb4.zip |
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>
Diffstat (limited to 'scripts/lib/wic/imager/baseimager.py')
-rw-r--r-- | scripts/lib/wic/imager/baseimager.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/lib/wic/imager/baseimager.py b/scripts/lib/wic/imager/baseimager.py index 760cf8a58a..557f536677 100644 --- a/scripts/lib/wic/imager/baseimager.py +++ b/scripts/lib/wic/imager/baseimager.py @@ -68,7 +68,7 @@ class BaseImageCreator(object): } # update setting from createopts - for key in createopts.keys(): + for key in createopts: if key in optmap: option = optmap[key] else: |