mirror of
https://git.yoctoproject.org/poky
synced 2026-01-29 21:08:42 +01:00
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>
This commit is contained in:
@@ -62,7 +62,7 @@ class ChangeRecord:
|
||||
|
||||
def pkglist_combine(depver):
|
||||
pkglist = []
|
||||
for k,v in depver.iteritems():
|
||||
for k,v in depver.items():
|
||||
if v:
|
||||
pkglist.append("%s (%s)" % (k,v))
|
||||
else:
|
||||
@@ -220,7 +220,7 @@ def compare_file_lists(alines, blines):
|
||||
adict = file_list_to_dict(alines)
|
||||
bdict = file_list_to_dict(blines)
|
||||
filechanges = []
|
||||
for path, splitv in adict.iteritems():
|
||||
for path, splitv in adict.items():
|
||||
newsplitv = bdict.pop(path, None)
|
||||
if newsplitv:
|
||||
# Check type
|
||||
|
||||
Reference in New Issue
Block a user