summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2014-08-04 07:21:36 (GMT)
committerRaymond Hettinger <python@rcn.com>2014-08-04 07:21:36 (GMT)
commitf5b182160d39225f7d03a7fa647ac00821d04716 (patch)
treeb28352b6c40965c1a15ba9ce4f239bc29ed23f74 /Doc
parent2b24884f18cc81705336b5fd159c43ffceda9382 (diff)
parentc6f22cc0a6ace52d7d3075f36c9e65f7da194212 (diff)
downloadcpython-f5b182160d39225f7d03a7fa647ac00821d04716.zip
cpython-f5b182160d39225f7d03a7fa647ac00821d04716.tar.gz
cpython-f5b182160d39225f7d03a7fa647ac00821d04716.tar.bz2
merge
Diffstat (limited to 'Doc')
-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):