Skip to content

Commit

Permalink
gh-70979: Fix runpy.run_path parameter name in docs (GH-32265)
Browse files Browse the repository at this point in the history
Noticed while reviewing GH-30729.
  • Loading branch information
JelleZijlstra committed Apr 15, 2022
1 parent 1fcb39e commit f1e989b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Doc/library/runpy.rst
Expand Up @@ -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__
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit f1e989b

Please sign in to comment.