mirror of
https://github.com/python/cpython.git
synced 2025-11-02 19:12:55 +00:00
Merge alpha100 branch back to main trunk
This commit is contained in:
parent
2979b01ff8
commit
b6775db241
176 changed files with 5302 additions and 3668 deletions
|
|
@ -10,13 +10,7 @@ class Prog:
|
|||
self.prog = regex.compile(pat)
|
||||
finally:
|
||||
xxx = regex.set_syntax(save_syntax)
|
||||
def match(self, *args):
|
||||
if len(args) == 2:
|
||||
str, offset = args
|
||||
elif len(args) == 1:
|
||||
str, offset = args[0], 0
|
||||
else:
|
||||
raise TypeError, 'wrong argument count'
|
||||
def match(self, str, offset = 0):
|
||||
if self.prog.search(str, offset) < 0:
|
||||
return ()
|
||||
regs = self.prog.regs
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue