From aa5a4be15f68b63ce96e45d256b9453e0534b7b5 Mon Sep 17 00:00:00 2001 From: Gilles DAVID Date: Mon, 22 May 2017 15:41:41 +0200 Subject: [PATCH] Python3: print => print() --- adm_local/unix/config_files/check_pyqt.m4 | 2 +- bin/runLightSalome.csh | 2 +- bin/runLightSalome.sh | 2 +- tools/CurvePlot/src/python/controller/utils.py.in | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/adm_local/unix/config_files/check_pyqt.m4 b/adm_local/unix/config_files/check_pyqt.m4 index 16878d41e..cfeca417d 100644 --- a/adm_local/unix/config_files/check_pyqt.m4 +++ b/adm_local/unix/config_files/check_pyqt.m4 @@ -236,7 +236,7 @@ if test "x$pyqt_ok" == "xyes" ; then # SUPPORTED=${QT_VERSION} #fi #SUPPORTED="Qt_`echo ${SUPPORTED} | sed -e 's/\./_/g'`" - PYQT_SIPFLAGS=`python -c "from PyQt4 import pyqtconfig; print pyqtconfig.Configuration().pyqt_sip_flags"` + PYQT_SIPFLAGS=`python -c "from PyQt4 import pyqtconfig; print(pyqtconfig.Configuration().pyqt_sip_flags)"` PYQT_SIPFLAGS="${PYQT_SIPFLAGS} -s .cc -c . ${PYQT_INCLUDES}" break fi diff --git a/bin/runLightSalome.csh b/bin/runLightSalome.csh index 5c13349fd..6ea222f7e 100755 --- a/bin/runLightSalome.csh +++ b/bin/runLightSalome.csh @@ -86,7 +86,7 @@ end # set additional environment ### -set python_version=`python -c "import sys; print sys.version[:3]"` +set python_version=`python -c "import sys; print(sys.version[:3])"` set MY_PATH="" set MY_LD_LIBRARY_PATH="" diff --git a/bin/runLightSalome.sh b/bin/runLightSalome.sh index 57fecc31a..caf368e8f 100755 --- a/bin/runLightSalome.sh +++ b/bin/runLightSalome.sh @@ -214,7 +214,7 @@ run_light_salome(){ # set additional environment ### - local PVERSION=`python -c "import sys; print sys.version[:3]" 2>/dev/null` + local PVERSION=`python -c "import sys; print(sys.version[:3])" 2>/dev/null` local MY_PATH="" local MY_LD_LIBRARY_PATH="" diff --git a/tools/CurvePlot/src/python/controller/utils.py.in b/tools/CurvePlot/src/python/controller/utils.py.in index 87f8e76c2..684858174 100644 --- a/tools/CurvePlot/src/python/controller/utils.py.in +++ b/tools/CurvePlot/src/python/controller/utils.py.in @@ -55,7 +55,7 @@ class Logger(object): @classmethod def __log(cls, typ, msg): - print "%s: %s" % (typ, msg) + print("%s: %s" % (typ, msg)) def trQ(tag, context="CURVEPLOT"): """ @return a QString read from the translation file """ -- 2.39.2