diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-05-20 11:49:34 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-06-02 08:24:00 +0100 |
commit | 8587bce564f715e46e7317218b5c190813d3a939 (patch) | |
tree | d67f45ca7d88f1ea1dcfc436a82763fa6c39a686 /meta/lib/oe/buildhistory_analysis.py | |
parent | a7309d5790f5dac46e84d3c14959943eb2496fda (diff) | |
download | poky-8587bce564f715e46e7317218b5c190813d3a939.tar.gz |
classes/lib: Update to match python3 iter requirements
python3 standardises its use of iteration operations. Update
the code to match the for python3 requires.
(From OE-Core rev: 2476bdcbef591e951d11d57d53f1315848758571)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oe/buildhistory_analysis.py')
-rw-r--r-- | meta/lib/oe/buildhistory_analysis.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/lib/oe/buildhistory_analysis.py b/meta/lib/oe/buildhistory_analysis.py index 5395c768a3..0dcd49f4f1 100644 --- a/meta/lib/oe/buildhistory_analysis.py +++ b/meta/lib/oe/buildhistory_analysis.py | |||
@@ -62,7 +62,7 @@ class ChangeRecord: | |||
62 | 62 | ||
63 | def pkglist_combine(depver): | 63 | def pkglist_combine(depver): |
64 | pkglist = [] | 64 | pkglist = [] |
65 | for k,v in depver.iteritems(): | 65 | for k,v in depver.items(): |
66 | if v: | 66 | if v: |
67 | pkglist.append("%s (%s)" % (k,v)) | 67 | pkglist.append("%s (%s)" % (k,v)) |
68 | else: | 68 | else: |
@@ -220,7 +220,7 @@ def compare_file_lists(alines, blines): | |||
220 | adict = file_list_to_dict(alines) | 220 | adict = file_list_to_dict(alines) |
221 | bdict = file_list_to_dict(blines) | 221 | bdict = file_list_to_dict(blines) |
222 | filechanges = [] | 222 | filechanges = [] |
223 | for path, splitv in adict.iteritems(): | 223 | for path, splitv in adict.items(): |
224 | newsplitv = bdict.pop(path, None) | 224 | newsplitv = bdict.pop(path, None) |
225 | if newsplitv: | 225 | if newsplitv: |
226 | # Check type | 226 | # Check type |