summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2019-05-14 15:53:40 -0600
committerSimon Glass <sjg@chromium.org>2019-07-10 16:52:45 -0600
commit4a4c5dd43f02f60717ef121aa4bb89a85465ff3c (patch)
tree7aa77b6395707d6e0919f395c582b43856a1219e /tools
parentd141f6c1cacc754a691507db736a21b8eda2a630 (diff)
downloadu-boot-4a4c5dd43f02f60717ef121aa4bb89a85465ff3c.tar.gz
u-boot-4a4c5dd43f02f60717ef121aa4bb89a85465ff3c.tar.bz2
u-boot-4a4c5dd43f02f60717ef121aa4bb89a85465ff3c.zip
patman: Use items() instead of iteritems()
Python 3 requires this, and Python 2 allows it. Convert the code over to ensure compatibility with Python 3. Signed-off-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 ea2bc74f75..07bf6a6ea4 100644
--- a/tools/patman/settings.py
+++ b/tools/patman/settings.py
@@ -163,7 +163,7 @@ class _ProjectConfigParser(ConfigParser.SafeConfigParser):
item_dict = dict(top_items)
item_dict.update(project_items)
return {(self._to_unicode(item), self._to_unicode(val))
- for item, val in item_dict.iteritems()}
+ for item, val in item_dict.items()}
def ReadGitAliases(fname):
"""Read a git alias file. This is in the form used by git: