From 519a85ef25a9c5552ce6478dcd39898c31cf1cd6 Mon Sep 17 00:00:00 2001 From: Ed Bartosh Date: Tue, 10 May 2016 11:31:14 +0300 Subject: bitbake: toaster: use print function in toaster script Used print() function instead of print statement to make toaster script to work with both python 2 and python 3 [YOCTO #9584] (Bitbake rev: 09d37ee51219edcd0be6fd24c82fce392533b39b) Signed-off-by: Ed Bartosh Signed-off-by: Richard Purdie --- bitbake/bin/toaster | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bitbake/bin/toaster b/bitbake/bin/toaster index 987d53c10d..921164c47e 100755 --- a/bitbake/bin/toaster +++ b/bitbake/bin/toaster @@ -112,7 +112,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' @@ -163,7 +163,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 -- cgit v1.2.3-54-g00ecf