diff options
| author | Guido van Rossum <guido@python.org> | 1997-10-27 18:17:19 (GMT) |
|---|---|---|
| committer | Guido van Rossum <guido@python.org> | 1997-10-27 18:17:19 (GMT) |
| commit | af8d2bf4d8643f7da7389a475f364c21836e8afe (patch) | |
| tree | f12917993da644ac12955a175c034fe41ddb3fb2 /Lib/re.py | |
| parent | e6eef4b4a3a11b00fe5eae44e1af667de0b138b9 (diff) | |
| download | cpython-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.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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, |
