mirror of
https://git.yoctoproject.org/poky
synced 2026-06-02 01:19:52 +00: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:
@@ -838,7 +838,7 @@ python write_srcrev() {
|
||||
f.write('# SRCREV_%s = "%s"\n' % (name, orig_srcrev))
|
||||
f.write('SRCREV_%s = "%s"\n' % (name, srcrev))
|
||||
else:
|
||||
f.write('SRCREV = "%s"\n' % srcrevs.itervalues().next())
|
||||
f.write('SRCREV = "%s"\n' % srcrevs.values())
|
||||
if len(tag_srcrevs) > 0:
|
||||
for name, srcrev in tag_srcrevs.items():
|
||||
f.write('# tag_%s = "%s"\n' % (name, srcrev))
|
||||
|
||||
Reference in New Issue
Block a user