diff options
author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2016-05-04 16:06:15 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-05-14 07:26:42 +0100 |
commit | 5b14eb8d68aaca82de4f8f6bcb28ad6f4a5125d0 (patch) | |
tree | e49bb2caa93c66866f087753e13608a92dfa6ec5 /scripts/lib/wic/conf.py | |
parent | ee6979a19c77931c3cf6368e695e370d46192fef (diff) | |
download | openembedded-core-5b14eb8d68aaca82de4f8f6bcb28ad6f4a5125d0.tar.gz openembedded-core-5b14eb8d68aaca82de4f8f6bcb28ad6f4a5125d0.tar.bz2 openembedded-core-5b14eb8d68aaca82de4f8f6bcb28ad6f4a5125d0.zip |
wic: use items instead of iteritems
Dictionary method 'iteritems' doesn't exist in Python 3.
Replaced 'iteritems' with 'items' to be able to run the
code under both Python 3 and Python 2.
[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/conf.py')
-rw-r--r-- | scripts/lib/wic/conf.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/lib/wic/conf.py b/scripts/lib/wic/conf.py index f7d56d046b..070ec3096b 100644 --- a/scripts/lib/wic/conf.py +++ b/scripts/lib/wic/conf.py @@ -70,7 +70,7 @@ class ConfigMgr(object): self.create = {} # initialize the values with defaults - for sec, vals in self.DEFAULTS.iteritems(): + for sec, vals in self.DEFAULTS.items(): setattr(self, sec, vals) def __set_ksconf(self, ksconf): |