summaryrefslogtreecommitdiff
path: root/scripts/lib
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2016-05-20 11:49:34 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-06-02 08:10:02 +0100
commit2476bdcbef591e951d11d57d53f1315848758571 (patch)
tree8ad30b8cded6c8bd3370cf99813b2a4f4791d127 /scripts/lib
parentbb4685af1bffe17b3aa92a6d21398f38a44ea874 (diff)
downloadopenembedded-core-2476bdcbef591e951d11d57d53f1315848758571.tar.gz
openembedded-core-2476bdcbef591e951d11d57d53f1315848758571.tar.bz2
openembedded-core-2476bdcbef591e951d11d57d53f1315848758571.zip
classes/lib: Update to match python3 iter requirements
python3 standardises its use of iteration operations. Update the code to match the for python3 requires. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib')
-rw-r--r--scripts/lib/recipetool/create_buildsys.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/lib/recipetool/create_buildsys.py b/scripts/lib/recipetool/create_buildsys.py
index 37d161ef0f..ad857801d3 100644
--- a/scripts/lib/recipetool/create_buildsys.py
+++ b/scripts/lib/recipetool/create_buildsys.py
@@ -840,7 +840,7 @@ class SpecFileRecipeHandler(RecipeHandler):
linecount = 0
with open(fileitem, 'r') as f:
for line in f:
- for value, varname in valuemap.iteritems():
+ for value, varname in valuemap.items():
if line.startswith(value + ':') and not varname in foundvalues:
foundvalues[varname] = line.split(':', 1)[1].strip()
break