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 23:05:13 +0100 |
commit | e36d04abb724002be015e7ea0f776b0d326c9dcb (patch) | |
tree | 7682ca0b2185c87132d3630ab16f55cbd167d8bb /scripts/lib/wic/conf.py | |
parent | 0c57dd96c85612e2c616966ae21fcbbb11bdc066 (diff) | |
download | poky-e36d04abb724002be015e7ea0f776b0d326c9dcb.tar.gz |
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]
(From OE-Core rev: 5b14eb8d68aaca82de4f8f6bcb28ad6f4a5125d0)
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): | |||
70 | self.create = {} | 70 | self.create = {} |
71 | 71 | ||
72 | # initialize the values with defaults | 72 | # initialize the values with defaults |
73 | for sec, vals in self.DEFAULTS.iteritems(): | 73 | for sec, vals in self.DEFAULTS.items(): |
74 | setattr(self, sec, vals) | 74 | setattr(self, sec, vals) |
75 | 75 | ||
76 | def __set_ksconf(self, ksconf): | 76 | def __set_ksconf(self, ksconf): |