Skip to content
Extraits de code Groupes Projets
Valider 2c266647 rédigé par pat's avatar pat
Parcourir les fichiers

fixed output mode in the 'tag' procedure

parent 5cc593e3
Branches master
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -489,7 +489,11 @@ class UnitexProcessor(object):
match_mode = kwargs.get("match_mode", UnitexConstants.MATCH_MODE_LONGEST)
if match_mode not in (UnitexConstants.MATCH_MODE_LONGEST, UnitexConstants.MATCH_MODE_SHORTEST):
raise UnitexException("Invalid match mode '%s'...")
output_mode = UnitexConstants.OUTPUT_MODE_MERGE
output_mode = kwargs.get("output_mode", UnitexConstants.OUTPUT_MODE_MERGE)
if output_mode not in (UnitexConstants.OUTPUT_MODE_IGNORE,
UnitexConstants.OUTPUT_MODE_MERGE,
UnitexConstants.OUTPUT_MODE_REPLACE):
raise UnitexException("Wrong value for the 'output_mode' option. UnitexConstants.OUTPUT_MODE_X required.")
index = self._locate(grammar, match_mode, output_mode)
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter