Salome HOME
chgt Copyrigth
[tools/eficas.git] / Editeur / chercheNbElem.py
index 29a03d6a80e62880184613a36c28b3afc6efb215..3dcec6048a17ab9421444aadd592b6fb499a86ec 100755 (executable)
@@ -1,6 +1,6 @@
 #!/usr/bin/env python
 # -*- coding: utf-8 -*-
-# Copyright (C) 2007-2013   EDF R&D
+# Copyright (C) 2007-2021   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
@@ -34,16 +34,15 @@ class ChercheInto:
                 self.cata=cata
                 self.dictInto={}
                 mesCommandes=self.cata.JdC.commandes
-                print "________________________"
                 for maCommande in mesCommandes:
-                    print maCommande.nom
-                    print maCommande.entites 
-                    print len(maCommande.entites) 
+                    print (maCommande.nom)
+                    print (maCommande.entites )
+                    print (len(maCommande.entites) )
 
 
 #        def construitListeInto(self,e):
 #            if isinstance(e,Accas.A_BLOC.BLOC) :
-#               print e.condition
+#               print (e.condition.
 #            for nomFils, fils in e.entites.items():
 #                self.construitListeInto(fils)
 
@@ -71,7 +70,7 @@ if __name__ == "__main__" :
         import readercata
         monreadercata  = readercata.READERCATA( parent, parent )
         Eficas.readercata=monreadercata
-        monCata=monreadercata.cata[0]
+        monCata=monreadercata.cata
 
         monConstruitInto=ChercheInto(monCata,code)