Skip to content

Commit 63bd724

Browse files
verhovskymerwok
andauthored
pkgutil docs: Link sys constants, add backticks (GH-32356)
Co-authored-by: Éric <[email protected]>
1 parent 85addfb commit 63bd724

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Doc/library/pkgutil.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ support.
2626
__path__ = extend_path(__path__, __name__)
2727

2828
This will add to the package's ``__path__`` all subdirectories of directories
29-
on ``sys.path`` named after the package. This is useful if one wants to
29+
on :data:`sys.path` named after the package. This is useful if one wants to
3030
distribute different parts of a single logical package as multiple
3131
directories.
3232

@@ -128,9 +128,9 @@ support.
128128

129129
Yield :term:`finder` objects for the given module name.
130130

131-
If fullname contains a '.', the finders will be for the package
131+
If fullname contains a ``'.'``, the finders will be for the package
132132
containing fullname, otherwise they will be all registered top level
133-
finders (i.e. those on both sys.meta_path and sys.path_hooks).
133+
finders (i.e. those on both :data:`sys.meta_path` and :data:`sys.path_hooks`).
134134

135135
If the named module is in a package, that package is imported as a side
136136
effect of invoking this function.
@@ -145,7 +145,7 @@ support.
145145
.. function:: iter_modules(path=None, prefix='')
146146

147147
Yields :class:`ModuleInfo` for all submodules on *path*, or, if
148-
*path* is ``None``, all top-level modules on ``sys.path``.
148+
*path* is ``None``, all top-level modules on :data:`sys.path`.
149149

150150
*path* should be either ``None`` or a list of paths to look for modules in.
151151

0 commit comments

Comments
 (0)