commit | af8d2bf4d8643f7da7389a475f364c21836e8afe | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Mon Oct 27 18:17:19 1997 +0000 |
committer | Guido van Rossum <guido@python.org> | Mon Oct 27 18:17:19 1997 +0000 |
tree | f12917993da644ac12955a175c034fe41ddb3fb2 | |
parent | e6eef4b4a3a11b00fe5eae44e1af667de0b138b9 [diff] |
Bugfix in match() -- the number of registers shouldn't be divided by two!
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 @@ 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,