mirror of
https://git.yoctoproject.org/poky
synced 2026-04-10 23:02:25 +02:00
scripts: python3: convert iterables to lists
Converted return value of items() keys() and values() to lists when dictionary is modified in the loop and when the result is added to the list. (From OE-Core rev: 874a269eb1d70060c2f3b3f8b70800e2aea789f4) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
1132970f0e
commit
07c97db272
@@ -240,7 +240,7 @@ def lookup_pkg(args):
|
||||
sys.exit(1)
|
||||
|
||||
if args.reverse:
|
||||
items = mappings.values()
|
||||
items = list(mappings.values())
|
||||
else:
|
||||
items = []
|
||||
for pkg in pkgs:
|
||||
|
||||
Reference in New Issue
Block a user