From 123f599502e576ad633c66e22fdaffd9172142c5 Mon Sep 17 00:00:00 2001 From: Jean-Philippe ARGAUD Date: Wed, 7 Jun 2017 22:58:15 +0200 Subject: [PATCH] Python 3 compatibility improvement (encoding) --- src/daEficas/prefs_ADAO.py.in | 3 ++- src/daSalome/daGUI/daEficasWrapper/adaoEficasWrapper.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/daEficas/prefs_ADAO.py.in b/src/daEficas/prefs_ADAO.py.in index 041554a..f7db3b4 100644 --- a/src/daEficas/prefs_ADAO.py.in +++ b/src/daEficas/prefs_ADAO.py.in @@ -48,7 +48,7 @@ initialdir=os.environ["PWD"] if sys.version.split()[0] < '3': # ===== Specifique : redefinition de l'encoding avant le Python 3 ! JPA reload(sys) - sys.setdefaultencoding('latin1') + sys.setdefaultencoding('utf-8') # ===== Specifique : pour les suivantes 8_x ! Enlever pour les 9_x ! JPA # 19/05/2017 : Redefinition du hook de "sys" present dans def _custom_except_hook(exc_type, exc_value, exc_traceback): @@ -70,4 +70,5 @@ closeFrameRechercheCommande = True closeEntete = True closeArbre = True taille = 800 +nombreDeBoutonParLigne = 2 diff --git a/src/daSalome/daGUI/daEficasWrapper/adaoEficasWrapper.py b/src/daSalome/daGUI/daEficasWrapper/adaoEficasWrapper.py index 9020be3..1324e49 100644 --- a/src/daSalome/daGUI/daEficasWrapper/adaoEficasWrapper.py +++ b/src/daSalome/daGUI/daEficasWrapper/adaoEficasWrapper.py @@ -181,7 +181,7 @@ class AdaoEficasWrapper(eficasSalome.MyEficas): # ####### - def addEWObserver(self, observer): + def addObserver(self, observer): """ In fact, only one observer may be defined for the moment. """ -- 2.39.2