File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ patterns.
7575
7676.. function :: filter(names, pattern)
7777
78- Return the subset of the list of *names * that match *pattern *. It is the same as
78+ Construct a list from those elements of the iterable *names * that match *pattern *. It is the same as
7979 ``[n for n in names if fnmatch(n, pattern)] ``, but implemented more efficiently.
8080
8181
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ def _compile_pattern(pat):
4646 return re .compile (res ).match
4747
4848def filter (names , pat ):
49- """Return the subset of the list NAMES that match PAT."""
49+ """Construct a list from those elements of the iterable NAMES that match PAT."""
5050 result = []
5151 pat = os .path .normcase (pat )
5252 match = _compile_pattern (pat )
You can’t perform that action at this time.
0 commit comments