Commit d980ed15 authored by Guido van Rossum's avatar Guido van Rossum

Add finditer to __all__ (when defining it at all).

SF bug 585882.  Will forward-port.
parent 6cd45b25
...@@ -166,6 +166,7 @@ def findall(pattern, string): ...@@ -166,6 +166,7 @@ def findall(pattern, string):
return _compile(pattern, 0).findall(string) return _compile(pattern, 0).findall(string)
if sys.hexversion >= 0x02020000: if sys.hexversion >= 0x02020000:
__all__.append("finditer")
def finditer(pattern, string): def finditer(pattern, string):
"""Return an iterator over all non-overlapping matches in the """Return an iterator over all non-overlapping matches in the
string. For each match, the iterator returns a match object. string. For each match, the iterator returns a match object.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment