summaryrefslogtreecommitdiff
path: root/Lib/sre.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2002-10-14 12:22:17 +0000
committerGuido van Rossum <guido@python.org>2002-10-14 12:22:17 +0000
commitd980ed15f00e4efabe110a1a6c4a2cede04e3768 (patch)
tree68516976d8ab289d4b4d91fb57156d5258d36c5a /Lib/sre.py
parent6cd45b25e4297324cd2ab7373575bab17675baaf (diff)
downloadcpython-d980ed15f00e4efabe110a1a6c4a2cede04e3768.tar.gz
Add finditer to __all__ (when defining it at all).
SF bug 585882. Will forward-port.
Diffstat (limited to 'Lib/sre.py')
-rw-r--r--Lib/sre.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/sre.py b/Lib/sre.py
index e8582b7928..7e107a68fd 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.