summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Lib/regexp.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/regexp.py b/Lib/regexp.py
index fc6fcad..2b8a5c0 100644
--- a/Lib/regexp.py
+++ b/Lib/regexp.py
@@ -12,15 +12,15 @@ class Prog:
xxx = regex.set_syntax(save_syntax)
return self
def match(self, args):
- if type(args) = type(()):
+ if type(args) == type(()):
str, offset = args
else:
str, offset = args, 0
if self.prog.search(str, offset) < 0:
return ()
- regs = self.prog.regs()
+ regs = self.prog.regs
i = len(regs)
- while i > 0 and regs[i-1] = (-1, -1):
+ while i > 0 and regs[i-1] == (-1, -1):
i = i-1
return regs[:i]