From 2476bdcbef591e951d11d57d53f1315848758571 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Fri, 20 May 2016 11:49:34 +0100 Subject: 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 --- scripts/lib/recipetool/create_buildsys.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') 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 -- cgit 1.2.3-korg