Salome HOME
Copyright update 2022
[modules/smesh.git] / src / Tools / blocFissure / gmu / getSubshapeIds.py
index f53ecc6d4aa734ae9df370826ec1aac595b5c9ae..7d75c7d452b7c88d23d920714383d1c403a5e201 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
 #
 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 #
+"""Transformation d'une liste de subshapes en une liste d'Id"""
 
 import logging
-from .geomsmesh import geompy
 
-# -----------------------------------------------------------------------------
-# --- transformation d'une liste de subshapes en une liste d'Id
+from .geomsmesh import geompy
 
 def getSubshapeIds(obj, subshapes):
-  """
-  transformation d'une liste de subshapes en une liste d'Id
-  """
+  """Transformation d'une liste de subshapes en une liste d'Id"""
   logging.debug("start")
-  subshapesId = []
+  subshapesId = list()
   for sub in subshapes:
     subshapesId.append(geompy.GetSubShapeID(obj, sub))
   logging.debug("subshapesId=%s", subshapesId)
+
   return subshapesId