diff options
author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2016-05-18 21:39:44 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-06-02 08:10:03 +0100 |
commit | 25d4d8274bac696a484f83d7f3ada778cf95f4d0 (patch) | |
tree | 626c84b436b57344bbb512870f4d2acd9f5b1195 /meta/lib/oe | |
parent | 210e290c9251839dc74e3aabdcea3655dd707a50 (diff) | |
download | openembedded-core-25d4d8274bac696a484f83d7f3ada778cf95f4d0.tar.gz openembedded-core-25d4d8274bac696a484f83d7f3ada778cf95f4d0.tar.bz2 openembedded-core-25d4d8274bac696a484f83d7f3ada778cf95f4d0.zip |
scripts: Fix deprecated dict methods for python3
Replaced iteritems -> items, itervalues -> values,
iterkeys -> keys or 'in'
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Diffstat (limited to 'meta/lib/oe')
-rw-r--r-- | meta/lib/oe/recipeutils.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/lib/oe/recipeutils.py b/meta/lib/oe/recipeutils.py index 632184fcd9..1b8538785c 100644 --- a/meta/lib/oe/recipeutils.py +++ b/meta/lib/oe/recipeutils.py @@ -194,7 +194,7 @@ def patch_recipe_lines(fromlines, values, trailing_newline=True): remainingnames = {} for k in values.keys(): remainingnames[k] = get_recipe_pos(k) - remainingnames = OrderedDict(sorted(remainingnames.iteritems(), key=lambda x: x[1])) + remainingnames = OrderedDict(sorted(remainingnames.items(), key=lambda x: x[1])) modifying = False @@ -234,7 +234,7 @@ def patch_recipe_lines(fromlines, values, trailing_newline=True): if modifying: # Insert anything that should come before this variable pos = get_recipe_pos(varname) - for k in remainingnames.keys()[:]: + for k in list(remainingnames): if remainingnames[k] > -1 and pos >= remainingnames[k] and not k in existingnames: outputvalue(k, newlines, rewindcomments=True) del remainingnames[k] |