From: Ed Bartosh Date: Thu, 2 Jun 2016 10:12:57 +0000 (+0300) Subject: scripts: python3: replace exec statement with builtin X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ceb6c6fac212c5e1e76bf58b793dc2b9420b4a66;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git scripts: python3: replace exec statement with builtin Used exec() builtin instead of 'exec' statement as this statement doesn't exist in python 3. Signed-off-by: Ed Bartosh Signed-off-by: Richard Purdie --- diff --git a/scripts/lib/bsp/engine.py b/scripts/lib/bsp/engine.py index 5ff6c9836d3..2b87d3337a9 100644 --- a/scripts/lib/bsp/engine.py +++ b/scripts/lib/bsp/engine.py @@ -1362,7 +1362,7 @@ def run_program_lines(linelist, codedump): of = open("bspgen.out", "w") of.write(buf) of.close() - exec buf + exec(buf) def gen_target(files, context = None):