Skip to content

Commit 77ebc69

Browse files
committed
gh-139620: fix argument name of load_module in importlib docs
The correct arugment is `fullname` instead of `name`.
1 parent d1ca001 commit 77ebc69

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/library/importlib.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1041,7 +1041,7 @@ find and load modules.
10411041

10421042
Concrete implementation of :meth:`importlib.abc.SourceLoader.set_data`.
10431043

1044-
.. method:: load_module(name=None)
1044+
.. method:: load_module(fullname=None)
10451045

10461046
Concrete implementation of :meth:`importlib.abc.Loader.load_module` where
10471047
specifying the name of the module to load is optional.
@@ -1084,7 +1084,7 @@ find and load modules.
10841084
Returns ``None`` as bytecode files have no source when this loader is
10851085
used.
10861086

1087-
.. method:: load_module(name=None)
1087+
.. method:: load_module(fullname=None)
10881088

10891089
Concrete implementation of :meth:`importlib.abc.Loader.load_module` where
10901090
specifying the name of the module to load is optional.

0 commit comments

Comments
 (0)