summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Doc/library/re.rst1
1 files changed, 0 insertions, 1 deletions
diff --git a/Doc/library/re.rst b/Doc/library/re.rst
index 48495a2..edb2486 100644
--- a/Doc/library/re.rst
+++ b/Doc/library/re.rst
@@ -1346,7 +1346,6 @@ successive matches::
('MISMATCH',r'.'), # Any other character
]
tok_regex = '|'.join('(?P<%s>%s)' % pair for pair in token_specification)
- get_token = re.compile(tok_regex).match
line_num = 1
line_start = 0
for mo in re.finditer(tok_regex, code):