Salome HOME
Merge Python 3 porting.
[modules/smesh.git] / src / Tools / MacMesh / MacMesh / GenFunctions.py
index 1c476ec81a26c166c52993847cb936535bc742b6..56d1e083c765a516161625075252992ec41e6b6c 100644 (file)
@@ -27,10 +27,10 @@ import CutnGroup
 import CompositeBox
 
 from salome.geom import geomBuilder
-geompy = geomBuilder.New( Config.theStudy )
+geompy = geomBuilder.New()
 
 from salome.smesh import smeshBuilder
-smesh = smeshBuilder.New( Config.theStudy )
+smesh = smeshBuilder.New()
 
 ##########################################################################################################
 
@@ -825,8 +825,7 @@ def IndexMultiOcc (Array,Element) :
 
 def SortList (ValList, CritList):
     Output = []
-    SortedCritList = copy.copy(CritList)
-    SortedCritList.sort()
+    SortedCritList = sorted(copy.copy(CritList))
     for i in range(0,len(ValList)):
         if i > 0 :
             if not(SortedCritList[i]==SortedCritList[i-1]):