Kaydet (Commit) 42535f01 authored tarafından Brett Cannon's avatar Brett Cannon

Fix a parameter name to make sense again

üst 069c87be
......@@ -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)
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment