From 254c2216c3a9d57d6580570ca19cd22bcb9b6f69 Mon Sep 17 00:00:00 2001 From: eap Date: Thu, 19 Oct 2017 15:30:51 +0300 Subject: [PATCH] Python3 porting fix the pb with creation of StdMeshersBuilder_RadialPrism3D by mesh.Prism() --- src/SMESH_SWIG/smeshBuilder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SMESH_SWIG/smeshBuilder.py b/src/SMESH_SWIG/smeshBuilder.py index 4b88a8050..e83fbe993 100644 --- a/src/SMESH_SWIG/smeshBuilder.py +++ b/src/SMESH_SWIG/smeshBuilder.py @@ -5292,7 +5292,7 @@ class algoCreator: if not algoType: algoType = self.defaultAlgoType if not algoType and self.algoTypeToClass: - algoType = self.algoTypeToClass.keys()[0] + algoType = sorted( self.algoTypeToClass.keys() )[0] if self.algoTypeToClass.has_key( algoType ): #print "Create algo",algoType return self.algoTypeToClass[ algoType ]( self.mesh, shape )