summaryrefslogtreecommitdiffstats
path: root/Lib/fnmatch.py
diff options
context:
space:
mode:
authorAndre Delfino <adelfino@gmail.com>2020-12-18 19:10:20 (GMT)
committerGitHub <noreply@github.com>2020-12-18 19:10:20 (GMT)
commite8d22642105d57007ab1242848a8cbadc7f179df (patch)
tree3f3d12835bc0e93129c5f26669ccd06ec9a5c41c /Lib/fnmatch.py
parent8c5d0347efd16f16dfb9596715e449cd928b89c8 (diff)
downloadcpython-e8d22642105d57007ab1242848a8cbadc7f179df.zip
cpython-e8d22642105d57007ab1242848a8cbadc7f179df.tar.gz
cpython-e8d22642105d57007ab1242848a8cbadc7f179df.tar.bz2
bpo-36769: Document that fnmatch.filter supports any kind of iterable (#13039)
Diffstat (limited to 'Lib/fnmatch.py')
-rw-r--r--Lib/fnmatch.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/fnmatch.py b/Lib/fnmatch.py
index 0eb1802..7c52c23 100644
--- a/Lib/fnmatch.py
+++ b/Lib/fnmatch.py
@@ -52,7 +52,7 @@ def _compile_pattern(pat):
return re.compile(res).match
def filter(names, pat):
- """Return the subset of the list NAMES that match PAT."""
+ """Construct a list from those elements of the iterable NAMES that match PAT."""
result = []
pat = os.path.normcase(pat)
match = _compile_pattern(pat)