Fix a parameter name to make sense again

This commit is contained in:
Brett Cannon 2014-05-30 16:28:00 -04:00
parent 069c87bee4
commit 42535f0104
2 changed files with 3189 additions and 3188 deletions

View file

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

File diff suppressed because it is too large Load diff