Skip to content

Commit 620fb74

Browse files
miss-islingtonjonathandungpicnixz
authored
[3.14] gh-148320: document that import sys.monitoring raises ModuleNotFoundError (GH-148365) (#148385)
gh-148320: document that `import sys.monitoring` raises `ModuleNotFoundError` (GH-148365) (cherry picked from commit d7c9f18) Co-authored-by: Jonathan Dung <jonathandung@yahoo.com> Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
1 parent f36da66 commit 620fb74

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Doc/library/sys.monitoring.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
.. note::
1212

1313
:mod:`!sys.monitoring` is a namespace within the :mod:`sys` module,
14-
not an independent module, so there is no need to
15-
``import sys.monitoring``, simply ``import sys`` and then use
16-
``sys.monitoring``.
14+
not an independent module, and ``import sys.monitoring`` would fail
15+
with a :exc:`ModuleNotFoundError`. Instead, simply ``import sys``
16+
and then use ``sys.monitoring``.
1717

1818

1919
This namespace provides access to the functions and constants necessary to

0 commit comments

Comments
 (0)