From 9cb9e03acc01653cce530a5a7894ef9a3e05de0d Mon Sep 17 00:00:00 2001 From: Antoine Durand-Gasselin Date: Thu, 18 Jun 2009 18:56:26 +0200 Subject: [PATCH] =?UTF-8?q?[affich=5Ftools,=20gest=5Fcrans]=20dialog=20ren?= =?UTF-8?q?voie=20d=C3=A9j=C3=A0=20des=20unicode!?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit darcs-hash:20090618165626-bd074-321a2e2e2e62c24d0345ccc7a3d5aff7d5fc8bca.gz --- gestion/affich_tools.py | 4 +--- gestion/gest_crans.py | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/gestion/affich_tools.py b/gestion/affich_tools.py index e4d3e39f..bd40f753 100644 --- a/gestion/affich_tools.py +++ b/gestion/affich_tools.py @@ -51,10 +51,8 @@ def dialog(backtitle,arg,dialogrc='') : return [ 1, [] ] # Lecture du fichier de résultat et effacement try: - result= [ line.decode(encoding) for line in f.readlines() ] + result= f.readlines() f.close() - except UnicodeDecodeErrors, e: - raise e except : result = [ "n'importe quoi", ''] res = 65280 diff --git a/gestion/gest_crans.py b/gestion/gest_crans.py index bc913dbb..ff0303a5 100644 --- a/gestion/gest_crans.py +++ b/gestion/gest_crans.py @@ -1887,7 +1887,7 @@ def select(clas, quoi, mde=''): while 1: os.system('clear') choix = None - print "Plusieurs réponses correspondant à votre requête ont été trouvées :" + print u"Plusieurs réponses correspondant à votre requête ont été trouvées :" aff(valid) i = affich_tools.prompt(u'Votre choix ? (0 pour annuler) %sid =' % quoi) if i == '0': break