scripts/lib/bsp/engine.py: Rename raw_input commands to input

According to https://docs.python.org/3/whatsnew/3.0.html python3
renamed 'raw_input' to 'input'. Making the appropiate changes for
this.

[YOCTO #9723]

(From meta-yocto rev: 76efeeeac7fb30b44ee7057b3b3d1fd84329dae1)

Signed-off-by: Humberto Ibarra <humberto.ibarra.lopez@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Humberto Ibarra
2016-06-09 12:07:37 -05:00
committed by Richard Purdie
parent 0aa5c27599
commit dd20de9c3e

View File

@@ -200,7 +200,7 @@ class EditBoxInputLine(InputLine):
msg += " [default: " + default_choice + "]"
line = name + " = default(raw_input(\"" + msg + " \"), " + name + ")"
line = name + " = default(input(\"" + msg + " \"), " + name + ")"
return line
@@ -313,7 +313,7 @@ class BooleanInputLine(InputLine):
msg += " [default: " + default_choice + "]"
line = name + " = boolean(raw_input(\"" + msg + " \"), " + name + ")"
line = name + " = boolean(input(\"" + msg + " \"), " + name + ")"
return line