summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2022-04-15 01:23:20 (GMT)
committerGitHub <noreply@github.com>2022-04-15 01:23:20 (GMT)
commitde7b7565219a24422bf34792239192a57c925281 (patch)
treead361b95df9260f36e155a0761182117598c1085 /Doc/library
parent35fef2711033ce793ec1cb43dfbd95e2d06ab7bb (diff)
downloadcpython-de7b7565219a24422bf34792239192a57c925281.zip
cpython-de7b7565219a24422bf34792239192a57c925281.tar.gz
cpython-de7b7565219a24422bf34792239192a57c925281.tar.bz2
gh-70979: Fix runpy.run_path parameter name in docs (GH-32265)
Noticed while reviewing GH-30729. (cherry picked from commit f1e989b04507db6f0adbccb5e1624d81cb217ea8) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Diffstat (limited to 'Doc/library')
-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 af35e81..26a4f14 100644
--- a/Doc/library/runpy.rst
+++ b/Doc/library/runpy.rst
@@ -93,7 +93,7 @@ The :mod:`runpy` module provides two functions:
run this way, as well as ensuring the real module name is always
accessible as ``__spec__.name``.
-.. function:: run_path(file_path, init_globals=None, run_name=None)
+.. function:: run_path(path_name, init_globals=None, run_name=None)
.. index::
module: __main__
@@ -140,7 +140,7 @@ The :mod:`runpy` module provides two functions:
A number of alterations are also made to the :mod:`sys` module. Firstly,
``sys.path`` may be altered as described above. ``sys.argv[0]`` is updated
- with the value of ``file_path`` and ``sys.modules[__name__]`` is updated
+ with the value of ``path_name`` and ``sys.modules[__name__]`` is updated
with a temporary module object for the module being executed. All
modifications to items in :mod:`sys` are reverted before the function
returns.