From db944c371982b98391fc92d27c2229ed94a783b7 Mon Sep 17 00:00:00 2001 From: Pascale Noyret Date: Thu, 9 Jan 2014 09:08:10 +0000 Subject: [PATCH] pour pb de P1 = 8 dans defi list --- generator/generator_python.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/generator/generator_python.py b/generator/generator_python.py index d9178d58..ddae4a4d 100644 --- a/generator/generator_python.py +++ b/generator/generator_python.py @@ -554,12 +554,16 @@ class PythonGenerator: try : k=liste[indice+nbrColonnes] for l in range(nbrColonnes) : - textformat=textformat+liste[indice]+"," + texteVariable=liste[indice].split("=")[0] + if ( liste[indice][-1]==')' and texteVariable[-1] !=')') : texteVariable=texteVariable+')' + textformat=textformat+texteVariable+"," indice=indice+1 textformat=textformat+"\n" except : while ( indice < len(liste) ) : - textformat=textformat+liste[indice]+"," + texteVariable=liste[indice].split("=")[0] + if ( liste[indice][-1]==')' and texteVariable[-1] !=')') : texteVariable=texteVariable+')' + textformat=textformat+texteVariable+"," indice=indice+1 textformat=textformat+"\n" except : -- 2.39.2