summaryrefslogtreecommitdiffstats
path: root/Doc/library/runpy.rst
diff options
context:
space:
mode:
authorAdam Turner <9087854+AA-Turner@users.noreply.github.com>2023-05-04 08:39:15 (GMT)
committerGitHub <noreply@github.com>2023-05-04 08:39:15 (GMT)
commit00563694bb94f61ed4d8d36646a881ed6f028367 (patch)
treea6235fa5767162c51f34664aa7d9640649338299 /Doc/library/runpy.rst
parent8f94c9465bda92f4dd913635799a375881e5c93e (diff)
downloadcpython-00563694bb94f61ed4d8d36646a881ed6f028367.zip
cpython-00563694bb94f61ed4d8d36646a881ed6f028367.tar.gz
cpython-00563694bb94f61ed4d8d36646a881ed6f028367.tar.bz2
[3.11] GH-97950: Use new-style index directive ('module') (GH-103996) (#104154)
Diffstat (limited to 'Doc/library/runpy.rst')
-rw-r--r--Doc/library/runpy.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/runpy.rst b/Doc/library/runpy.rst
index 26a4f14..e161458 100644
--- a/Doc/library/runpy.rst
+++ b/Doc/library/runpy.rst
@@ -30,7 +30,7 @@ The :mod:`runpy` module provides two functions:
.. function:: run_module(mod_name, init_globals=None, run_name=None, alter_sys=False)
.. index::
- module: __main__
+ pair: module; __main__
Execute the code of the specified module and return the resulting module
globals dictionary. The module's code is first located using the standard
@@ -96,7 +96,7 @@ The :mod:`runpy` module provides two functions:
.. function:: run_path(path_name, init_globals=None, run_name=None)
.. index::
- module: __main__
+ pair: module; __main__
Execute the code at the named filesystem location and return the resulting
module globals dictionary. As with a script name supplied to the CPython