File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1818 single: - (minus); in glob-style wildcards
1919 single: . (dot); in glob-style wildcards
2020
21- The :mod: `glob ` module finds all the pathnames matching a specified pattern
22- according to the rules used by the Unix shell, although results are returned in
23- arbitrary order. No tilde expansion is done, but ``* ``, ``? ``, and character
21+ The :mod: `! glob ` module finds pathnames
22+ using pattern matching rules similar to the Unix shell.
23+ No tilde expansion is done, but ``* ``, ``? ``, and character
2424ranges expressed with ``[] `` will be correctly matched. This is done by using
2525the :func: `os.scandir ` and :func: `fnmatch.fnmatch ` functions in concert, and
2626not by actually invoking a subshell.
@@ -29,7 +29,7 @@ not by actually invoking a subshell.
2929 The pathnames are returned in no particular order. If you need a specific
3030 order, sort the results.
3131
32- Note that files beginning with a dot (``. ``) can only be matched by
32+ Files beginning with a dot (``. ``) can only be matched by
3333patterns that also start with a dot,
3434unlike :func: `fnmatch.fnmatch ` or :func: `pathlib.Path.glob `.
3535(For tilde and shell variable expansion, use :func: `os.path.expanduser ` and
You can’t perform that action at this time.
0 commit comments