]> granicus.if.org Git - python/commitdiff
Add finditer to __all__ (when defining it at all).
authorGuido van Rossum <guido@python.org>
Mon, 14 Oct 2002 12:22:17 +0000 (12:22 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 14 Oct 2002 12:22:17 +0000 (12:22 +0000)
SF bug 585882.  Will forward-port.

Lib/sre.py

index e8582b79280252e974943eee3db5a2eb0c7f4497..7e107a68fd0fe4344a567338fe0dbe09273390b6 100644 (file)
@@ -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.