[Python-checkins] CVS: python/dist/src/Lib sre.py,1.31,1.32
Fredrik Lundh
effbot@users.sourceforge.net
Fri, 06 Jul 2001 13:56:12 -0700
Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv1289/Lib
Modified Files:
sre.py
Log Message:
bug #436596
re.findall doesn't take a maxsplit argument
Index: sre.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/sre.py,v
retrieving revision 1.31
retrieving revision 1.32
diff -C2 -r1.31 -r1.32
*** sre.py 2001/03/22 15:50:10 1.31
--- sre.py 2001/07/06 20:56:10 1.32
***************
*** 76,80 ****
return _compile(pattern, 0).split(string, maxsplit)
! def findall(pattern, string, maxsplit=0):
"""Return a list of all non-overlapping matches in the string.
--- 76,80 ----
return _compile(pattern, 0).split(string, maxsplit)
! def findall(pattern, string):
"""Return a list of all non-overlapping matches in the string.
***************
*** 84,88 ****
Empty matches are included in the result."""
! return _compile(pattern, 0).findall(string, maxsplit)
def compile(pattern, flags=0):
--- 84,88 ----
Empty matches are included in the result."""
! return _compile(pattern, 0).findall(string)
def compile(pattern, flags=0):