summaryrefslogtreecommitdiffstats
path: root/Lib/importlib
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2014-05-30 20:28:00 (GMT)
committerBrett Cannon <brett@python.org>2014-05-30 20:28:00 (GMT)
commit42535f010415e14dd4eb5424d5caf476097521ea (patch)
treea0fd6075e34c1ed44252d7cbd2ba2731e6fe041f /Lib/importlib
parent069c87bee45190c52b765c410c008058e32daaa8 (diff)
downloadcpython-42535f010415e14dd4eb5424d5caf476097521ea.zip
cpython-42535f010415e14dd4eb5424d5caf476097521ea.tar.gz
cpython-42535f010415e14dd4eb5424d5caf476097521ea.tar.bz2
Fix a parameter name to make sense again
Diffstat (limited to 'Lib/importlib')
-rw-r--r--Lib/importlib/_bootstrap.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/importlib/_bootstrap.py b/Lib/importlib/_bootstrap.py
index 0619629..c4ee41a 100644
--- a/Lib/importlib/_bootstrap.py
+++ b/Lib/importlib/_bootstrap.py
@@ -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)