Salome HOME
pb de check box
[tools/eficas.git] / Ihm / I_A_CLASSER.py
index d4d7c888df40f4f886845dcf31e22cfc3306119c..b94d794e2391acbbac0ece8f0e600d1aaa4f3e80 100644 (file)
 """
 """
 
-import string
+from __future__ import absolute_import
 
-import I_REGLE
+from . import I_REGLE
+import six
 
 class A_CLASSER(I_REGLE.REGLE):
   def gettext(self):
     text = 'Regle ' + self.__class__.__name__+ ' :\n'
     t="  D'abord :\n"+' '*8
     for arg in self.args0:
-      t=t+string.strip(arg)+' ou '
+      t=t+arg.strip()+' ou '
     text = text + t[0:-4] +'\n'
     t = "  Ensuite :\n"+' '*8
     for arg in self.args1:
-      t=t+string.strip(arg)+' ou '
+      t=t+arg.strip()+' ou '
     text = text + t[0:-4] +'\n'
-    return unicode(text)
+    return six.text_type(text)