From: Guido van Rossum Date: Mon, 14 Oct 2002 12:22:17 +0000 (+0000) Subject: Add finditer to __all__ (when defining it at all). X-Git-Tag: v2.3c1~3793 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0d976551fba362c2dd7fe19bfc97f48e25161b46;p=thirdparty%2FPython%2Fcpython.git Add finditer to __all__ (when defining it at all). SF bug 585882. Will forward-port. --- diff --git a/Lib/sre.py b/Lib/sre.py index e8582b792802..7e107a68fd0f 100644 --- a/Lib/sre.py +++ b/Lib/sre.py @@ -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.