summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2022-04-07 01:18:56 (GMT)
committerGitHub <noreply@github.com>2022-04-07 01:18:56 (GMT)
commitea6dc5ec08d6efe8b04e4375ad0f14f926ba2188 (patch)
tree26a3995c8796aa2cadf8d145e5ef8116ce7f86cf
parent30dfc46be43c2e6311699a18718cc97d784ed1a8 (diff)
downloadcpython-ea6dc5ec08d6efe8b04e4375ad0f14f926ba2188.zip
cpython-ea6dc5ec08d6efe8b04e4375ad0f14f926ba2188.tar.gz
cpython-ea6dc5ec08d6efe8b04e4375ad0f14f926ba2188.tar.bz2
pkgutil docs: Link sys constants, add backticks (GH-32356)
Co-authored-by: Éric <merwok@netwok.org> (cherry picked from commit 63bd72448a5af01206c2a9aec5f1ed1e903f1e12) Co-authored-by: Boris Verkhovskiy <boris.verk@gmail.com>
-rw-r--r--Doc/library/pkgutil.rst8
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/library/pkgutil.rst b/Doc/library/pkgutil.rst
index 3b17b9a..788a02d 100644
--- a/Doc/library/pkgutil.rst
+++ b/Doc/library/pkgutil.rst
@@ -26,7 +26,7 @@ support.
__path__ = extend_path(__path__, __name__)
This will add to the package's ``__path__`` all subdirectories of directories
- on ``sys.path`` named after the package. This is useful if one wants to
+ on :data:`sys.path` named after the package. This is useful if one wants to
distribute different parts of a single logical package as multiple
directories.
@@ -128,9 +128,9 @@ support.
Yield :term:`finder` objects for the given module name.
- If fullname contains a '.', the finders will be for the package
+ If fullname contains a ``'.'``, the finders will be for the package
containing fullname, otherwise they will be all registered top level
- finders (i.e. those on both sys.meta_path and sys.path_hooks).
+ finders (i.e. those on both :data:`sys.meta_path` and :data:`sys.path_hooks`).
If the named module is in a package, that package is imported as a side
effect of invoking this function.
@@ -145,7 +145,7 @@ support.
.. function:: iter_modules(path=None, prefix='')
Yields :class:`ModuleInfo` for all submodules on *path*, or, if
- *path* is ``None``, all top-level modules on ``sys.path``.
+ *path* is ``None``, all top-level modules on :data:`sys.path`.
*path* should be either ``None`` or a list of paths to look for modules in.