From 1dec08787e7127f42327afcbd43c26964dd11380 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bernard=20S=C3=A9cher=C3=83?= Date: Thu, 4 Feb 2021 14:10:15 +0100 Subject: [PATCH] update test 6 --- CDMATH/tests/swig/BoySurface/VTKnewReader.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CDMATH/tests/swig/BoySurface/VTKnewReader.py b/CDMATH/tests/swig/BoySurface/VTKnewReader.py index e6e96cd..74ebdeb 100644 --- a/CDMATH/tests/swig/BoySurface/VTKnewReader.py +++ b/CDMATH/tests/swig/BoySurface/VTKnewReader.py @@ -157,14 +157,14 @@ class VTURawReader: if meshDim == -1: raise Exception("Could not find a valid cell type in the mesh !") if i > 0: - print "WARNING: some invalid/incompatible cell types were detected - trying to have them as polygons ..." + print("WARNING: some invalid/incompatible cell types were detected - trying to have them as polygons ...") for typ in types2: if self.VTKTypes_2_MC[typ] != -1: md=MEDCouplingMesh.GetDimensionOfGeometricType(self.VTKTypes_2_MC[typ]) if md!=meshDim: raise Exception("MultiLevel umeshes not managed yet !") else: - print "WARNING: invalid/incompatible cell type detected: VTK type number: %d" % typ + print("WARNING: invalid/incompatible cell type detected: VTK type number: %d" % typ) m=MEDCouplingUMesh("mesh",meshDim) # coordinates coo=np.memmap(fd,dtype=rd._type_coords,mode='r',offset=ref+rd._off_coords,shape=(rd._nb_nodes*rd._space_dim,)) @@ -273,7 +273,7 @@ class VTURawReader: if str(attrs["encoding"])=="raw": raise VTURawReader.NormalException(self._loc.getLineNumber()) else: - print attrs["encoding"] + print(attrs["encoding"]) raise VTURawReader.NotRawVTUException("The file is not a raw VTU ! Change reader !") pass pass -- 2.39.2