Salome HOME
Copyright update 2022
[modules/smesh.git] / src / Tools / blocFissure / gmu / sortFaces.py
index 342a95039b5fcf5530c14f4eb6bbe06d436b016f..ef674e182678ab8fc19a1e6413d7239e9d87cd92 100644 (file)
@@ -1,5 +1,5 @@
 # -*- coding: utf-8 -*-
-# Copyright (C) 2014-2020  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
@@ -17,7 +17,6 @@
 #
 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 #
-
 """tri par surface de faces"""
 
 import logging
@@ -29,6 +28,6 @@ def sortFaces(facesToSort):
 
   l_surfaces = [(geompy.BasicProperties(face)[1], i, face) for i, face in enumerate(facesToSort)]
   l_surfaces.sort()
-  facesSorted = [face for surf, i, face in l_surfaces]
+  facesSorted = [face for _, i, face in l_surfaces]
 
   return facesSorted, l_surfaces[0][0], l_surfaces[-1][0]