Used print() function instead of print statement
to make toaster script to work with both python 2 and python 3

[YOCTO #9584]

Signed-off-by: Ed Bartosh <[email protected]>
---
 bitbake/bin/toaster | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/bitbake/bin/toaster b/bitbake/bin/toaster
index 91716e6..05b7935 100755
--- a/bitbake/bin/toaster
+++ b/bitbake/bin/toaster
@@ -111,7 +111,7 @@ stop_system()
 
 verify_prereq() {
     # Verify Django version
-    reqfile=$(python -c "import os; print 
os.path.realpath('$BBBASEDIR/toaster-requirements.txt')")
+    reqfile=$(python -c "import os; 
print(os.path.realpath('$BBBASEDIR/toaster-requirements.txt'))")
     exp='s/Django\([><=]\+\)\([^,]\+\),\([><=]\+\)\(.\+\)/'
     exp=$exp'import sys,django;version=django.get_version().split(".");'
     exp=$exp'sys.exit(not (version \1 "\2".split(".") and version \3 
"\4".split(".")))/p'
@@ -162,7 +162,7 @@ fi
 
 if [ "$TOASTER_CONF" = "" ]; then
     TOASTER_CONF="$TEMPLATECONF/toasterconf.json"
-    export TOASTER_CONF=$(python -c "import os; print 
os.path.realpath('$TOASTER_CONF')")
+    export TOASTER_CONF=$(python -c "import os; 
print(os.path.realpath('$TOASTER_CONF'))")
 fi
 
 if [ ! -f $TOASTER_CONF ]; then
-- 
2.1.4

-- 
_______________________________________________
toaster mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/toaster

Reply via email to