From: Anthony Geay Date: Thu, 25 Jan 2018 14:57:26 +0000 (+0100) Subject: Room service always here to clean-up. Thanks a lot. X-Git-Tag: V9_0_0~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=4d438d0da27faf0cc4ed0e742ac6214ae5873515;p=tools%2Fmedcoupling.git Room service always here to clean-up. Thanks a lot. --- diff --git a/src/MEDLoader/Swig/CaseReader.py b/src/MEDLoader/Swig/CaseReader.py index cacc7c58b..4801c93cb 100644 --- a/src/MEDLoader/Swig/CaseReader.py +++ b/src/MEDLoader/Swig/CaseReader.py @@ -370,7 +370,7 @@ class CaseReader(CaseIO): if "TIME\n" in lines: end=lines.index("TIME\n") pass - for i in xrange(ind + 1,end): + for i in range(ind + 1,end): m=re.match("^([\w]+)[\s]+\per[\s]+([\w]+)[\s]*\:[\s]*[0-9]*[\s]*([\w]+)[\s]+([\S]+)$",lines[i]) if m: if m.groups()[0]=="constant": diff --git a/src/MEDLoader/Swig/SauvLoaderTest.py b/src/MEDLoader/Swig/SauvLoaderTest.py index 44c1ef682..f9454b1b1 100644 --- a/src/MEDLoader/Swig/SauvLoaderTest.py +++ b/src/MEDLoader/Swig/SauvLoaderTest.py @@ -254,13 +254,13 @@ class SauvLoaderTest(unittest.TestCase): nb_segs = [100, 100, 100] box_sizes = [1., 1., 1.] compo_names = ["x", "y", "z"] - box_steps = [box_sizes[i]/nb_segs[i] for i in xrange(mesh_dim)] + box_steps = [box_sizes[i]/nb_segs[i] for i in range(mesh_dim)] mesh = MEDCouplingCMesh.New("Mesh_box") # axes coords axes_arrays = [] - for i in xrange(mesh_dim): - axe_coords = [j*box_steps[i] for j in xrange(nb_segs[i]+1)] + for i in range(mesh_dim): + axe_coords = [j*box_steps[i] for j in range(nb_segs[i]+1)] axe_arr = DataArrayDouble.New(axe_coords) axe_arr.setInfoOnComponent(0,compo_names[i])