Get rid of many apply() calls.
diff --git a/Lib/tokenize.py b/Lib/tokenize.py
index 37ce049..7e6fa12 100644
--- a/Lib/tokenize.py
+++ b/Lib/tokenize.py
@@ -42,8 +42,8 @@
N_TOKENS += 2
def group(*choices): return '(' + '|'.join(choices) + ')'
-def any(*choices): return apply(group, choices) + '*'
-def maybe(*choices): return apply(group, choices) + '?'
+def any(*choices): return group(*choices) + '*'
+def maybe(*choices): return group(*choices) + '?'
Whitespace = r'[ \f\t]*'
Comment = r'#[^\r\n]*'
@@ -157,7 +157,7 @@
# backwards compatible interface
def tokenize_loop(readline, tokeneater):
for token_info in generate_tokens(readline):
- apply(tokeneater, token_info)
+ tokeneater(*token_info)
def generate_tokens(readline):
"""