summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorPaul Burton <paul.burton@imgtec.com>2016-09-27 16:03:54 +0100
committersjg <sjg@chromium.org>2016-10-09 09:30:32 -0600
commitc9eac38a25b53085f18a831eb28c27512982cc5f (patch)
tree420ba0200679cd0cd87678d9f890b2b4057aedcd /tools
parent2ce7b21e6c98301f9b05daac076db33d498cfbe1 (diff)
patman: Use items() to iterate over dictionaries
In python 3.x the iteritems() method has been removed from dictionaries, and the items() method does effectively the same thing. On python 2.x using items() is a little less efficient since it involves copying data, but as speed isn't a concern in this code switch to using items() anyway for simplicity. Signed-off-by: Paul Burton <paul.burton@imgtec.com> Acked-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools')
-rw-r--r--tools/patman/settings.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/patman/settings.py b/tools/patman/settings.py
index 3caf3793582..7ef0ab0a31f 100644
--- a/tools/patman/settings.py
+++ b/tools/patman/settings.py
@@ -94,7 +94,7 @@ class _ProjectConfigParser(ConfigParser.SafeConfigParser):
if not self.has_section(project_settings):
self.add_section(project_settings)
project_defaults = _default_settings.get(project_name, {})
- for setting_name, setting_value in project_defaults.iteritems():
+ for setting_name, setting_value in project_defaults.items():
self.set(project_settings, setting_name, setting_value)
def get(self, section, option, *args, **kwargs):