| Index: tools/lexer_generator/action.py
|
| diff --git a/tools/lexer_generator/action.py b/tools/lexer_generator/action.py
|
| index fdcde20cd1d8cc0ad893a4161896ea087186c8eb..8a854640bfbf7c5481a1d83e10e1494b7b2ae8f9 100644
|
| --- a/tools/lexer_generator/action.py
|
| +++ b/tools/lexer_generator/action.py
|
| @@ -167,7 +167,6 @@ class Action(object):
|
| self.__match_action == other.__match_action)
|
|
|
| def __str__(self):
|
| - parts = []
|
| - for action in [self.__entry_action, self.__match_action]:
|
| - parts.append('' if not action else str(action))
|
| + parts = map(lambda action : '' if not action else str(action),
|
| + [self.__entry_action, self.__match_action])
|
| return "action< %s >" % " | ".join(parts)
|
|
|