[affich_tools, gest_crans] dialog renvoie déjà des unicode!
darcs-hash:20090618165626-bd074-321a2e2e2e62c24d0345ccc7a3d5aff7d5fc8bca.gz
This commit is contained in:
parent
978ab0c969
commit
9cb9e03acc
2 changed files with 2 additions and 4 deletions
|
@ -51,10 +51,8 @@ def dialog(backtitle,arg,dialogrc='') :
|
||||||
return [ 1, [] ]
|
return [ 1, [] ]
|
||||||
# Lecture du fichier de résultat et effacement
|
# Lecture du fichier de résultat et effacement
|
||||||
try:
|
try:
|
||||||
result= [ line.decode(encoding) for line in f.readlines() ]
|
result= f.readlines()
|
||||||
f.close()
|
f.close()
|
||||||
except UnicodeDecodeErrors, e:
|
|
||||||
raise e
|
|
||||||
except :
|
except :
|
||||||
result = [ "n'importe quoi", '']
|
result = [ "n'importe quoi", '']
|
||||||
res = 65280
|
res = 65280
|
||||||
|
|
|
@ -1887,7 +1887,7 @@ def select(clas, quoi, mde=''):
|
||||||
while 1:
|
while 1:
|
||||||
os.system('clear')
|
os.system('clear')
|
||||||
choix = None
|
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)
|
aff(valid)
|
||||||
i = affich_tools.prompt(u'Votre choix ? (0 pour annuler) %sid =' % quoi)
|
i = affich_tools.prompt(u'Votre choix ? (0 pour annuler) %sid =' % quoi)
|
||||||
if i == '0': break
|
if i == '0': break
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue