]> SALOME platform Git repositories - modules/eficas.git/commitdiff
Salome HOME
CCAR:correction tuple
authorChristian Caremoli <>
Tue, 10 Oct 2006 14:43:49 +0000 (14:43 +0000)
committerChristian Caremoli <>
Tue, 10 Oct 2006 14:43:49 +0000 (14:43 +0000)
Traducteur/visiteur.py

index 0646c93a2136af96d5b1fc91fe74e4ddf67ae543..004e512055bdfe04bb7baa7b11b5a60a0cf29989 100644 (file)
@@ -54,7 +54,10 @@ class KeywordFinder(MatchFinder):
                 # Pour eviter les tuples et listes ordinaires, 
                 # on ne garde que les visites fructueuses
                 matchlist.append(self.matches)
-        self.matches=matchlist
+        if len(matchlist) == 1:
+            self.matches=matchlist[0]
+        else:
+            self.matches=matchlist
 
     visitList=visitTuple