Salome HOME
commentaire
[tools/eficas.git] / Noyau / N_MCBLOC.py
index 020b1593d877fa4d7409c3e553238442e9c28c3e..d0612550d51b9a04154fb0103333f91ddc72719d 100644 (file)
     de type ENTITE
 """
 
+from __future__ import absolute_import
 import types
 
-import N_MCCOMPO
+from . import N_MCCOMPO
 
 
 class MCBLOC(N_MCCOMPO.MCCOMPO):
@@ -99,8 +100,8 @@ class MCBLOC(N_MCCOMPO.MCCOMPO):
         # et caché ('c')
         # On n'ajoute aucune information sur les blocs. Ils n'ont pas de défaut seulement
         # une condition.
-        for k, v in self.definition.entites.items():
-            if not dico.has_key(k):
+        for k, v in list(self.definition.entites.items()):
+            if not k in dico:
                 if v.label == 'SIMP':
                     # Mot clé simple
                     dico[k] = v.defaut