diff --git a/src/Mod/Fem/FemMesh2Mesh.py b/src/Mod/Fem/FemMesh2Mesh.py index f10087a0c..feaad9a24 100644 --- a/src/Mod/Fem/FemMesh2Mesh.py +++ b/src/Mod/Fem/FemMesh2Mesh.py @@ -20,6 +20,8 @@ # * * # *************************************************************************** +from __future__ import print_function + __title__ = "FemMesh to Mesh converter" __author__ = "Frantisek Loeffelmann, Ulrich Brammer, Bernd Hahnebach" __url__ = "http://www.freecadweb.org" @@ -131,7 +133,7 @@ def femmesh_2_mesh(myFemMesh, myResults=None): singleFaces.append(faceCodeList[actFaceIdx]) actFaceIdx += 1 else: - print 'found a last Face: ', faceCodeList[actFaceIdx] + print('found a last Face: ', faceCodeList[actFaceIdx]) singleFaces.append(faceCodeList[actFaceIdx]) actFaceIdx += 1 @@ -172,5 +174,5 @@ def femmesh_2_mesh(myFemMesh, myResults=None): # print 'my 2. triangle: ', triangle end_time = time.clock() - print 'Mesh by surface search method: ', end_time - start_time + print('Mesh by surface search method: ', end_time - start_time) return output_mesh diff --git a/src/Mod/Fem/FemToolsZ88.py b/src/Mod/Fem/FemToolsZ88.py index 594366d22..1c697c4e6 100644 --- a/src/Mod/Fem/FemToolsZ88.py +++ b/src/Mod/Fem/FemToolsZ88.py @@ -19,6 +19,7 @@ # * USA * # * * # *************************************************************************** +from __future__ import print_function __title__ = "FemToolsZ88" __author__ = "Bernd Hahnebach" @@ -101,7 +102,7 @@ class FemToolsZ88(FemTools.FemTools): def setup_z88(self, z88_binary=None): from platform import system z88_std_location = FreeCAD.ParamGet("User parameter:BaseApp/Preferences/Mod/Fem/Z88").GetBool("UseStandardZ88Location") - print z88_std_location + print(z88_std_location) if z88_std_location: if system() == "Windows": z88_path = FreeCAD.getHomePath() + "bin/z88r.exe" diff --git a/src/Mod/Fem/importZ88Mesh.py b/src/Mod/Fem/importZ88Mesh.py index b1c7b6c26..8f34871f4 100644 --- a/src/Mod/Fem/importZ88Mesh.py +++ b/src/Mod/Fem/importZ88Mesh.py @@ -19,6 +19,7 @@ # * USA * # * * # *************************************************************************** +from __future__ import print_function __title__ = "FreeCAD Z88 Mesh reader and writer" __author__ = "Bernd Hahnebach" @@ -390,7 +391,7 @@ def get_z88_element_type(femmesh, femelement_table=None): # in some cases lowest key in femelement_table is not [1] for elem in sorted(femelement_table): elem_length = len(femelement_table[elem]) - print elem_length + print(elem_length) break # break after the first elem if FemMeshTools.is_solid_femmesh(femmesh): if femmesh.TetraCount == femmesh.VolumeCount: