Skip to content

Commit df78ded

Browse files
committed
trim down the opening paragraph
1 parent c5269d7 commit df78ded

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

Doc/library/glob.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
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
2424
ranges expressed with ``[]`` will be correctly matched. This is done by using
2525
the :func:`os.scandir` and :func:`fnmatch.fnmatch` functions in concert, and
2626
not by actually invoking a subshell.
@@ -29,16 +29,16 @@ 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
3333
patterns that also start with a dot,
3434
unlike :func:`fnmatch.fnmatch` or :func:`pathlib.Path.glob`.
35-
(For tilde and shell variable expansion, use :func:`os.path.expanduser` and
36-
:func:`os.path.expandvars`.)
35+
For tilde and shell variable expansion, use :func:`os.path.expanduser` and
36+
:func:`os.path.expandvars`.
3737

3838
For a literal match, wrap the meta-characters in brackets.
3939
For example, ``'[?]'`` matches the character ``'?'``.
4040

41-
The :mod:`glob` module defines the following functions:
41+
The :mod:`!glob` module defines the following functions:
4242

4343

4444
.. function:: glob(pathname, *, root_dir=None, dir_fd=None, recursive=False, \
@@ -55,7 +55,7 @@ The :mod:`glob` module defines the following functions:
5555

5656
If *root_dir* is not ``None``, it should be a :term:`path-like object`
5757
specifying the root directory for searching. It has the same effect on
58-
:func:`glob` as changing the current directory before calling it. If
58+
:func:`!glob` as changing the current directory before calling it. If
5959
*pathname* is relative, the result will contain paths relative to
6060
*root_dir*.
6161

0 commit comments

Comments
 (0)