From ff05e4afde24f422df65752a2d5b5679cd37b136 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre-Elliott=20B=C3=A9cue?= Date: Thu, 11 Sep 2014 13:26:33 +0200 Subject: [PATCH] [gest_crans] Collision entre un nom de variable et un nom de fonction. --- gestion/gest_crans.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gestion/gest_crans.py b/gestion/gest_crans.py index 233a8858..3bf31be3 100755 --- a/gestion/gest_crans.py +++ b/gestion/gest_crans.py @@ -2302,13 +2302,13 @@ def select(clas, quoi, mde=''): """ s= ['', '', '', '', '', '', '', '', '', ''] - def f(a): + def unicodize(a): try: return unicode(a, 'utf-8') except: return a while 1: - s = map(f, s) + s = map(unicodize, s) arg = u'--title "Recherche %s" ' % ' '.join(quoi.split()[:-1]) arg += u'--help-button ' arg += u'--form "Entrez vos paramètres de recherche" 0 0 0 '