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 23:05:13 +0100 |
commit | 52ce79dcba4c161509a6cc3ee3afe5cd6a99d53f (patch) | |
tree | 305ca59109812b075e8eda7f637c60276ee51517 /scripts/lib/wic/imager/baseimager.py | |
parent | e36d04abb724002be015e7ea0f776b0d326c9dcb (diff) | |
download | poky-52ce79dcba4c161509a6cc3ee3afe5cd6a99d53f.tar.gz |
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]
(From OE-Core rev: 003df7dfb932c551953fbf1bd769b3c31bd16fb4)
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): | |||
68 | } | 68 | } |
69 | 69 | ||
70 | # update setting from createopts | 70 | # update setting from createopts |
71 | for key in createopts.keys(): | 71 | for key in createopts: |
72 | if key in optmap: | 72 | if key in optmap: |
73 | option = optmap[key] | 73 | option = optmap[key] |
74 | else: | 74 | else: |