mirror of
https://git.yoctoproject.org/poky
synced 2026-07-17 04:07:06 +00:00
scripts: Fix deprecated dict methods for python3
Replaced iteritems -> items, itervalues -> values, iterkeys -> keys or 'in' (From OE-Core rev: 25d4d8274bac696a484f83d7f3ada778cf95f4d0) 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
63404baadb
commit
7eab022d4b
@@ -128,7 +128,7 @@ class NpmRecipeHandler(RecipeHandler):
|
||||
license = self._handle_license(data)
|
||||
if license:
|
||||
licenses['${PN}'] = license
|
||||
for pkgname, pkgitem in npmpackages.iteritems():
|
||||
for pkgname, pkgitem in npmpackages.items():
|
||||
_, pdata = pkgitem
|
||||
license = self._handle_license(pdata)
|
||||
if license:
|
||||
@@ -136,7 +136,7 @@ class NpmRecipeHandler(RecipeHandler):
|
||||
# Now write out the package-specific license values
|
||||
# We need to strip out the json data dicts for this since split_pkg_licenses
|
||||
# isn't expecting it
|
||||
packages = OrderedDict((x,y[0]) for x,y in npmpackages.iteritems())
|
||||
packages = OrderedDict((x,y[0]) for x,y in npmpackages.items())
|
||||
packages['${PN}'] = ''
|
||||
pkglicenses = split_pkg_licenses(licvalues, packages, lines_after, licenses)
|
||||
all_licenses = list(set([item for pkglicense in pkglicenses.values() for item in pkglicense]))
|
||||
|
||||
Reference in New Issue
Block a user