summaryrefslogtreecommitdiffstats
path: root/scripts/lib/wic/help.py
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2016-05-04 16:06:15 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-05-14 23:05:13 +0100
commite36d04abb724002be015e7ea0f776b0d326c9dcb (patch)
tree7682ca0b2185c87132d3630ab16f55cbd167d8bb /scripts/lib/wic/help.py
parent0c57dd96c85612e2c616966ae21fcbbb11bdc066 (diff)
downloadpoky-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/help.py')
-rw-r--r--scripts/lib/wic/help.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/lib/wic/help.py b/scripts/lib/wic/help.py
index 158b6c1ae0..7dcc71740b 100644
--- a/scripts/lib/wic/help.py
+++ b/scripts/lib/wic/help.py
@@ -66,7 +66,7 @@ def get_wic_plugins_help():
66 result = wic_plugins_help 66 result = wic_plugins_help
67 for plugin_type in PLUGIN_TYPES: 67 for plugin_type in PLUGIN_TYPES:
68 result += '\n\n%s PLUGINS\n\n' % plugin_type.upper() 68 result += '\n\n%s PLUGINS\n\n' % plugin_type.upper()
69 for name, plugin in pluginmgr.get_plugins(plugin_type).iteritems(): 69 for name, plugin in pluginmgr.get_plugins(plugin_type).items():
70 result += "\n %s plugin:\n" % name 70 result += "\n %s plugin:\n" % name
71 if plugin.__doc__: 71 if plugin.__doc__:
72 result += plugin.__doc__ 72 result += plugin.__doc__