]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-70979: Fix runpy.run_path parameter name in docs (GH-32265)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 15 Apr 2022 01:27:45 +0000 (18:27 -0700)
committerGitHub <noreply@github.com>
Fri, 15 Apr 2022 01:27:45 +0000 (18:27 -0700)
Noticed while reviewing GH-30729.
(cherry picked from commit f1e989b04507db6f0adbccb5e1624d81cb217ea8)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Doc/library/runpy.rst

index af35e81a2d4523996250adb4f54de031a5a7b168..26a4f1435214e8ef82c69069609e3b01ad842301 100644 (file)
@@ -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.