]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bug #436596
authorFredrik Lundh <fredrik@pythonware.com>
Fri, 6 Jul 2001 20:56:10 +0000 (20:56 +0000)
committerFredrik Lundh <fredrik@pythonware.com>
Fri, 6 Jul 2001 20:56:10 +0000 (20:56 +0000)
re.findall doesn't take a maxsplit argument

Lib/sre.py

index 6706fac8692e09cf723f76b744428d8046440665..579106bfc138286ab010d399e0b4be1b200b0e64 100644 (file)
@@ -75,7 +75,7 @@ def split(pattern, string, maxsplit=0):
     returning a list containing the resulting substrings."""
     return _compile(pattern, 0).split(string, maxsplit)
 
-def findall(pattern, string, maxsplit=0):
+def findall(pattern, string):
     """Return a list of all non-overlapping matches in the string.
 
     If one or more groups are present in the pattern, return a
@@ -83,7 +83,7 @@ def findall(pattern, string, maxsplit=0):
     has more than one group.
 
     Empty matches are included in the result."""
-    return _compile(pattern, 0).findall(string, maxsplit)
+    return _compile(pattern, 0).findall(string)
 
 def compile(pattern, flags=0):
     "Compile a regular expression pattern, returning a pattern object."