summaryrefslogtreecommitdiff
path: root/tools/dtoc/fdt_fallback.py
diff options
context:
space:
mode:
authorPaul Burton <paul.burton@imgtec.com>2016-09-27 15:03:56 (GMT)
committersjg <sjg@chromium.org>2016-10-09 15:30:32 (GMT)
commit4ae6549f8e1cd31076c6dbabef568689fc313a13 (patch)
treeb71cc4593f137e4441b9a0c53df64dd1f44aae67 /tools/dtoc/fdt_fallback.py
parentf5d44b9bae64d4fc347c537e6d5f13d630eb858d (diff)
downloadu-boot-fsl-qoriq-4ae6549f8e1cd31076c6dbabef568689fc313a13.tar.xz
dtoc: Use items() to iterate over dictionaries in python 3.x
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 the affected 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/dtoc/fdt_fallback.py')
-rw-r--r--tools/dtoc/fdt_fallback.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/dtoc/fdt_fallback.py b/tools/dtoc/fdt_fallback.py
index 7d52da7..23e2679 100644
--- a/tools/dtoc/fdt_fallback.py
+++ b/tools/dtoc/fdt_fallback.py
@@ -58,7 +58,7 @@ class Node(NodeBase):
This fills in the props and subnodes properties, recursively
searching into subnodes so that the entire tree is built.
"""
- for name, byte_list_str in self._fdt.GetProps(self.path).iteritems():
+ for name, byte_list_str in self._fdt.GetProps(self.path).items():
prop = Prop(self, name, byte_list_str)
self.props[name] = prop