diff options
author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2016-06-02 13:12:58 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-06-03 13:13:31 +0100 |
commit | 3af9f6b88fcc5d7fddff01595f9bcf2aba548720 (patch) | |
tree | 4e12964bfc3744d3e2eacd4f15ada732bd3a3a90 /scripts/lib | |
parent | c67597468057745534f2b6ee1b2dbd9fb00ac12d (diff) | |
download | poky-3af9f6b88fcc5d7fddff01595f9bcf2aba548720.tar.gz |
engine: python3: replace iteritems() -> items()
Used items() as iteritems() doesn't exist in python 3.
(From meta-yocto rev: 0fd2e739cd14c6a02b6f4610176a0ad29b2ecc0e)
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib')
-rw-r--r-- | scripts/lib/bsp/engine.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/lib/bsp/engine.py b/scripts/lib/bsp/engine.py index 2b87d3337a..3ed90fae95 100644 --- a/scripts/lib/bsp/engine.py +++ b/scripts/lib/bsp/engine.py | |||
@@ -1385,7 +1385,7 @@ def gen_supplied_property_vals(properties, program_lines): | |||
1385 | Generate user-specified entries for input values instead of | 1385 | Generate user-specified entries for input values instead of |
1386 | generating input prompts. | 1386 | generating input prompts. |
1387 | """ | 1387 | """ |
1388 | for name, val in properties.iteritems(): | 1388 | for name, val in properties.items(): |
1389 | program_line = name + " = \"" + val + "\"" | 1389 | program_line = name + " = \"" + val + "\"" |
1390 | program_lines.append(program_line) | 1390 | program_lines.append(program_line) |
1391 | 1391 | ||
@@ -1621,7 +1621,7 @@ def print_dict(items, indent = 0): | |||
1621 | """ | 1621 | """ |
1622 | Print the values in a possibly nested dictionary. | 1622 | Print the values in a possibly nested dictionary. |
1623 | """ | 1623 | """ |
1624 | for key, val in items.iteritems(): | 1624 | for key, val in items.items(): |
1625 | print(" "*indent + "\"%s\" :" % key) | 1625 | print(" "*indent + "\"%s\" :" % key) |
1626 | if type(val) == dict: | 1626 | if type(val) == dict: |
1627 | print("{") | 1627 | print("{") |
@@ -1654,7 +1654,7 @@ def get_properties(input_lines): | |||
1654 | props = line.props | 1654 | props = line.props |
1655 | item = {} | 1655 | item = {} |
1656 | name = props["name"] | 1656 | name = props["name"] |
1657 | for key, val in props.items(): | 1657 | for key, val props.items(): |
1658 | if not key == "name": | 1658 | if not key == "name": |
1659 | item[key] = val | 1659 | item[key] = val |
1660 | properties[name] = item | 1660 | properties[name] = item |