diff options
author | Fredrik Lundh <fredrik@pythonware.com> | 2001-07-06 20:56:10 (GMT) |
---|---|---|
committer | Fredrik Lundh <fredrik@pythonware.com> | 2001-07-06 20:56:10 (GMT) |
commit | e06cbb8c56d76d5f845c4809a22fcdf99063496c (patch) | |
tree | 0f07a7bb2f3244189a1493fe4a0fc85d614516f9 | |
parent | fd44eabf0649241469af0e2c367de56950638e23 (diff) | |
download | cpython-e06cbb8c56d76d5f845c4809a22fcdf99063496c.zip cpython-e06cbb8c56d76d5f845c4809a22fcdf99063496c.tar.gz cpython-e06cbb8c56d76d5f845c4809a22fcdf99063496c.tar.bz2 |
bug #436596
re.findall doesn't take a maxsplit argument
-rw-r--r-- | Lib/sre.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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." |