X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=Ihm%2FI_A_CLASSER.py;h=b94d794e2391acbbac0ece8f0e600d1aaa4f3e80;hb=217a9ce2f303b098ad28d282bb0df2dfeeeed3c2;hp=d4d7c888df40f4f886845dcf31e22cfc3306119c;hpb=16d5922e798b1254eb558678612711d72ed38b32;p=tools%2Feficas.git diff --git a/Ihm/I_A_CLASSER.py b/Ihm/I_A_CLASSER.py index d4d7c888..b94d794e 100644 --- a/Ihm/I_A_CLASSER.py +++ b/Ihm/I_A_CLASSER.py @@ -20,20 +20,21 @@ """ """ -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)