From 072d2a96098b8a7057ab3a113e7cc0bf95139ed6 Mon Sep 17 00:00:00 2001 From: Jeremie Dimino Date: Tue, 18 Dec 2007 01:52:18 +0100 Subject: [PATCH] Correction. Le choix par defaut ne marchait pas. darcs-hash:20071218005218-af139-a0606ebac7075654f6fc833b7e1ca97cbfd31cb9.gz --- gestion/interactive.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gestion/interactive.py b/gestion/interactive.py index 4712e976..daab73b2 100644 --- a/gestion/interactive.py +++ b/gestion/interactive.py @@ -63,10 +63,11 @@ ou (choix, doc, valeur) ou encore (choix, doc, valeur, operation), où: raise KeyboardInterrupt() if answer == " ": for choice in choices: - if choice[0].lower != choix[0]: + if choice[0].lower != choice[0]: answer = choice[0][0].lower() break - cprint("Aucun choix par défaut!") + if answer == " ": + cprint("Aucun choix par défaut!") else: answer = answer.lower() for choice in choices: