]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Python3: print => print()
authorGilles DAVID <gilles-g.david@edf.fr>
Mon, 22 May 2017 13:41:41 +0000 (15:41 +0200)
committerGilles DAVID <gilles-g.david@edf.fr>
Mon, 22 May 2017 13:41:41 +0000 (15:41 +0200)
adm_local/unix/config_files/check_pyqt.m4
bin/runLightSalome.csh
bin/runLightSalome.sh
tools/CurvePlot/src/python/controller/utils.py.in

index 16878d41e499c3c65751f57aac45af4463c5b5da..cfeca417d24b90a2c43c23a296f175ac4bdf7128 100644 (file)
@@ -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
index 5c13349fd95ae91fd4f5efdd3330722403865119..6ea222f7e90b370e2af0dd9ebd60ab1a5c3063f3 100755 (executable)
@@ -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=""
index 57fecc31a3a6fa31a47240c914cd6df5808c0f2f..caf368e8f4ca18df9f3d3557537987d9a10cfd74 100755 (executable)
@@ -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=""
index 87f8e76c2d992cb5c3cd332a22630e944d6bd293..684858174ef83b5b2aae16de2e57d52cb7cea9bd 100644 (file)
@@ -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 """