[OE-core] [PATCH 11/16] scripts: python3: replace exec statement with builtin
Ed Bartosh
ed.bartosh at linux.intel.com
Thu Jun 2 10:12:57 UTC 2016
Used exec() builtin instead of 'exec' statement as
this statement doesn't exist in python 3.
Signed-off-by: Ed Bartosh <ed.bartosh at linux.intel.com>
---
scripts/lib/bsp/engine.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/lib/bsp/engine.py b/scripts/lib/bsp/engine.py
index 5ff6c98..2b87d33 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):
--
2.1.4
More information about the Openembedded-core
mailing list