summaryrefslogtreecommitdiffstats
path: root/Lib/re.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-10-27 18:17:19 (GMT)
committerGuido van Rossum <guido@python.org>1997-10-27 18:17:19 (GMT)
commitaf8d2bf4d8643f7da7389a475f364c21836e8afe (patch)
treef12917993da644ac12955a175c034fe41ddb3fb2 /Lib/re.py
parente6eef4b4a3a11b00fe5eae44e1af667de0b138b9 (diff)
downloadcpython-af8d2bf4d8643f7da7389a475f364c21836e8afe.zip
cpython-af8d2bf4d8643f7da7389a475f364c21836e8afe.tar.gz
cpython-af8d2bf4d8643f7da7389a475f364c21836e8afe.tar.bz2
Bugfix in match() -- the number of registers shouldn't be divided by two!
Diffstat (limited to 'Lib/re.py')
-rw-r--r--Lib/re.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/re.py b/Lib/re.py
index 420f6ed..bf74808 100644
--- a/Lib/re.py
+++ b/Lib/re.py
@@ -86,7 +86,7 @@ class RegexObject:
regs = self.code.match(string, pos, ANCHORED)
if regs is None:
return None
- self.num_regs=len(regs)/2
+ self.num_regs=len(regs)
return MatchObject(self,
string,
pos,