[gest_crans] Collision entre un nom de variable et un nom de fonction.

This commit is contained in:
Pierre-Elliott Bécue 2014-09-11 13:26:33 +02:00
parent f16e44b074
commit ff05e4afde

View file

@ -2302,13 +2302,13 @@ def select(clas, quoi, mde=''):
""" """
s= ['', '', '', '', '', '', '', '', '', ''] s= ['', '', '', '', '', '', '', '', '', '']
def f(a): def unicodize(a):
try: try:
return unicode(a, 'utf-8') return unicode(a, 'utf-8')
except: except:
return a return a
while 1: while 1:
s = map(f, s) s = map(unicodize, s)
arg = u'--title "Recherche %s" ' % ' '.join(quoi.split()[:-1]) arg = u'--title "Recherche %s" ' % ' '.join(quoi.split()[:-1])
arg += u'--help-button ' arg += u'--help-button '
arg += u'--form "Entrez vos paramètres de recherche" 0 0 0 ' arg += u'--form "Entrez vos paramètres de recherche" 0 0 0 '