1515
1616def glob (pathname , * , root_dir = None , dir_fd = None , recursive = False ,
1717 include_hidden = False ):
18- """Return a list of paths matching a pathname pattern.
18+ """Return a list of paths matching a ` pathname` pattern.
1919
2020 The pattern may contain simple shell-style wildcards a la
2121 fnmatch. Unlike fnmatch, filenames starting with a
@@ -25,12 +25,12 @@ def glob(pathname, *, root_dir=None, dir_fd=None, recursive=False,
2525 The order of the returned list is undefined. Sort it if you need a
2626 particular order.
2727
28- If root_dir is not None, it should be a path-like object specifying the
28+ If ` root_dir` is not None, it should be a path-like object specifying the
2929 root directory for searching. It has the same effect as changing the
3030 current directory before calling it. If pathname is relative, the
31- result will contain paths relative to root_dir.
31+ result will contain paths relative to ` root_dir` .
3232
33- If dir_fd is not None, it should be a file descriptor referring to a
33+ If ` dir_fd` is not None, it should be a file descriptor referring to a
3434 directory, and paths will then be relative to that directory.
3535
3636 If `include_hidden` is true, the patterns '*', '?', '**' will match hidden
@@ -44,7 +44,7 @@ def glob(pathname, *, root_dir=None, dir_fd=None, recursive=False,
4444
4545def iglob (pathname , * , root_dir = None , dir_fd = None , recursive = False ,
4646 include_hidden = False ):
47- """Return an iterator which yields the paths matching a pathname pattern.
47+ """Return an iterator which yields the paths matching a ` pathname` pattern.
4848
4949 The pattern may contain simple shell-style wildcards a la
5050 fnmatch. However, unlike fnmatch, filenames starting with a
@@ -54,18 +54,18 @@ def iglob(pathname, *, root_dir=None, dir_fd=None, recursive=False,
5454 The order of the returned paths is undefined. Sort them if you need a
5555 particular order.
5656
57- If root_dir is not None, it should be a path-like object specifying the
57+ If ` root_dir` is not None, it should be a path-like object specifying the
5858 root directory for searching. It has the same effect as changing the
5959 current directory before calling it. If pathname is relative, the
60- result will contain paths relative to root_dir.
60+ result will contain paths relative to ` root_dir` .
6161
62- If dir_fd is not None, it should be a file descriptor referring to a
62+ If ` dir_fd` is not None, it should be a file descriptor referring to a
6363 directory, and paths will then be relative to that directory.
6464
6565 If `include_hidden` is true, the patterns '*', '?', '**' will match hidden
6666 directories.
6767
68- If recursive is true, the pattern '**' will match any files and
68+ If ` recursive` is true, the pattern '**' will match any files and
6969 zero or more directories and subdirectories.
7070 """
7171 sys .audit ("glob.glob" , pathname , recursive )
0 commit comments