mirror of
https://github.com/python/cpython.git
synced 2025-12-23 09:19:18 +00:00
Fix a parameter name to make sense again
This commit is contained in:
parent
069c87bee4
commit
42535f0104
2 changed files with 3189 additions and 3188 deletions
|
|
@ -581,13 +581,14 @@ def _find_module_shim(self, fullname):
|
|||
return loader
|
||||
|
||||
|
||||
def _load_module_shim(spec, fullname):
|
||||
# Typically used by loader classes as a method replacement.
|
||||
def _load_module_shim(self, fullname):
|
||||
"""Load the specified module into sys.modules and return it.
|
||||
|
||||
This method is deprecated. Use loader.exec_module instead.
|
||||
|
||||
"""
|
||||
spec = spec_from_loader(fullname, spec)
|
||||
spec = spec_from_loader(fullname, self)
|
||||
if fullname in sys.modules:
|
||||
module = sys.modules[fullname]
|
||||
_exec(spec, module)
|
||||
|
|
|
|||
6372
Python/importlib.h
6372
Python/importlib.h
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue