Fix name of parameter in run_module signature
This commit is contained in:
parent
61850a7800
commit
90e67590fd
|
@ -132,11 +132,11 @@ implementing the ``-m`` switch to always delegate to
|
|||
``runpy.run_module`` instead of trying to run the module directly.
|
||||
The delegation has the form::
|
||||
|
||||
runpy.run_module(sys.argv[0], run_name="__main__", as_script=True)
|
||||
runpy.run_module(sys.argv[0], run_name="__main__", alter_sys=True)
|
||||
|
||||
``run_module`` is the only function ``runpy`` exposes in its public API.
|
||||
|
||||
``run_module(mod_name[, init_globals][, run_name][, as_script])``
|
||||
``run_module(mod_name[, init_globals][, run_name][, alter_sys])``
|
||||
|
||||
Execute the code of the specified module and return the resulting
|
||||
module globals dictionary. The module's code is first located using
|
||||
|
|
Loading…
Reference in New Issue