Fix name of parameter in run_module signature

This commit is contained in:
Nick Coghlan 2006-03-06 08:59:10 +00:00
parent 61850a7800
commit 90e67590fd
1 changed files with 2 additions and 2 deletions

View File

@ -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