summaryrefslogtreecommitdiffstats
path: root/scripts
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:24:00 +0100
commit8587bce564f715e46e7317218b5c190813d3a939 (patch)
treed67f45ca7d88f1ea1dcfc436a82763fa6c39a686 /scripts
parenta7309d5790f5dac46e84d3c14959943eb2496fda (diff)
downloadpoky-8587bce564f715e46e7317218b5c190813d3a939.tar.gz
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>
Diffstat (limited to 'scripts')
-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):
840 linecount = 0 840 linecount = 0
841 with open(fileitem, 'r') as f: 841 with open(fileitem, 'r') as f:
842 for line in f: 842 for line in f:
843 for value, varname in valuemap.iteritems(): 843 for value, varname in valuemap.items():
844 if line.startswith(value + ':') and not varname in foundvalues: 844 if line.startswith(value + ':') and not varname in foundvalues:
845 foundvalues[varname] = line.split(':', 1)[1].strip() 845 foundvalues[varname] = line.split(':', 1)[1].strip()
846 break 846 break