summaryrefslogtreecommitdiffstats
path: root/Lib/tokenize.py
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2001-02-09 11:10:16 (GMT)
committerEric S. Raymond <esr@thyrsus.com>2001-02-09 11:10:16 (GMT)
commitb08b2d316653bf22d39ad76814b5a0e7dad30c31 (patch)
tree004b23a8a68e8fa951c21aca3da4e71304fafb48 /Lib/tokenize.py
parentbe9b507bddf79fc98536dee2feaf05fcd4438196 (diff)
downloadcpython-b08b2d316653bf22d39ad76814b5a0e7dad30c31.zip
cpython-b08b2d316653bf22d39ad76814b5a0e7dad30c31.tar.gz
cpython-b08b2d316653bf22d39ad76814b5a0e7dad30c31.tar.bz2
String method conversion.
Diffstat (limited to 'Lib/tokenize.py')
-rw-r--r--Lib/tokenize.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/tokenize.py b/Lib/tokenize.py
index 3014b19..9f46612 100644
--- a/Lib/tokenize.py
+++ b/Lib/tokenize.py
@@ -26,7 +26,7 @@ tok_name[NL] = 'NL'
# Imagnumber is new. Expfloat is corrected to reject '0e4'.
# Note: to quote a backslash in a regex, it must be doubled in a r'aw' string.
-def group(*choices): return '(' + string.join(choices, '|') + ')'
+def group(*choices): return '(' + '|'.join(choices) + ')'
def any(*choices): return apply(group, choices) + '*'
def maybe(*choices): return apply(group, choices) + '?'