mirror of https://github.com/python/cpython.git
Add finditer to __all__ (when defining it at all).
SF bug 585882. Will forward-port.
This commit is contained in:
parent
78cc051617
commit
0d976551fb
|
@ -166,6 +166,7 @@ def findall(pattern, string):
|
|||
return _compile(pattern, 0).findall(string)
|
||||
|
||||
if sys.hexversion >= 0x02020000:
|
||||
__all__.append("finditer")
|
||||
def finditer(pattern, string):
|
||||
"""Return an iterator over all non-overlapping matches in the
|
||||
string. For each match, the iterator returns a match object.
|
||||
|
|
Loading…
Reference in New Issue