Salome HOME
*** empty log message ***
[tools/eficas.git] / convert / convert_asterv5.py
index e025eec22eb6f564c7ed8ddfb854b361a895590d..10bccc7fadea46503e69cf7896948dd89240d0c0 100644 (file)
@@ -1,3 +1,4 @@
+# -*- coding: utf-8 -*-
 #            CONFIGURATION MANAGEMENT OF EDF VERSION
 # ======================================================================
 # COPYRIGHT (C) 1991 - 2002  EDF R&D                  WWW.CODE-ASTER.ORG
 
     La méthode readfile a pour fonction de lire un fichier dont le
     nom est passé en argument de la fonction.
-       convertisseur.readfile(nom_fichier)
+       convertisseur.readfile(nom_fichier)
 
     La méthode convert a pour fonction de convertir le fichier
     préalablement lu dans un objet du format passé en argument.
-       objet=convertisseur.convert(outformat)
+       objet=convertisseur.convert(outformat)
 
     Ce convertisseur supporte uniquement le format de sortie exec
 
@@ -92,7 +93,7 @@ class AsterParser:
          self.cr.fatal("Impossible ouvrir fichier %s" % filename)
          return
 
-   def convert(self,outformat):
+   def convert(self,outformat,appli=None):
       if outformat == 'exec':
          return self.getexec()
       elif outformat == 'execnoparseur':
@@ -113,7 +114,7 @@ class AsterParser:
             self.out = parseur_python.PARSEUR_PYTHON(self.out).get_texte()
          except:
             self.cr.fatal("Erreur dans la deuxième phase d interpretation de %s" % self.filename)
-            tracebak.print_exc()
+            traceback.print_exc()
             return ""
          self.oldtext=self.text
       return self.out