X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FTools%2FMacMesh%2FMacMesh%2FCentralUnrefine.py;h=bb93cbf2986bc97057b3018e14f97695629bb4d4;hp=de90ea4456dbac74fd850811355025009045246b;hb=d9f4b53e489dd5857db264ede6acded7b076c9f1;hpb=5260bd00bd51567f6137d5ea7ae0564464c4290a diff --git a/src/Tools/MacMesh/MacMesh/CentralUnrefine.py b/src/Tools/MacMesh/MacMesh/CentralUnrefine.py index de90ea445..bb93cbf29 100644 --- a/src/Tools/MacMesh/MacMesh/CentralUnrefine.py +++ b/src/Tools/MacMesh/MacMesh/CentralUnrefine.py @@ -1,4 +1,4 @@ -# Copyright (C) 2014-2016 EDF R&D +# Copyright (C) 2014-2022 EDF R&D # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public @@ -178,7 +178,7 @@ def RemoveLastObj() : Config.Connections = Config.Connections[:-1] def GroupArray(indices, GroupNames) : - if type(indices) is int : + if isinstance(indices, int) : indices = [indices] GroupNames = [GroupNames] Output = [None,None,None,None]