[gnome-continuous-yocto/gnomeostree-3.28-rocko: 831/8267] scripts/lib/bsp/engine.py: Rename raw_input commands to input



commit dd20de9c3e70628612db1ebab36bf25fa5d80779
Author: Humberto Ibarra <humberto ibarra lopez intel com>
Date:   Thu Jun 9 12:07:37 2016 -0500

    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>

 scripts/lib/bsp/engine.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/scripts/lib/bsp/engine.py b/scripts/lib/bsp/engine.py
index 0c162eb..c44bbc5 100644
--- a/scripts/lib/bsp/engine.py
+++ b/scripts/lib/bsp/engine.py
@@ -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
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]