summaryrefslogtreecommitdiffstats
path: root/Lib/re.py
diff options
context:
space:
mode:
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,