summaryrefslogtreecommitdiffstats
path: root/Lib/importlib/_bootstrap.py
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2016-07-08 18:09:35 (GMT)
committerBrett Cannon <brett@python.org>2016-07-08 18:09:35 (GMT)
commit3fef2eef2e5422a06e788d9239205b61a5f4eea1 (patch)
tree8d638ab854d2dbfce0510d6febe56ae0e72d2537 /Lib/importlib/_bootstrap.py
parentfdcdd9ed80d2b4bf7e7dac04ed2d22e9cb747ff6 (diff)
downloadcpython-3fef2eef2e5422a06e788d9239205b61a5f4eea1.zip
cpython-3fef2eef2e5422a06e788d9239205b61a5f4eea1.tar.gz
cpython-3fef2eef2e5422a06e788d9239205b61a5f4eea1.tar.bz2
Issue #26972: Fix some mistakes in importlib-related docstrings.
Thanks to Oren Milman for the patch.
Diffstat (limited to 'Lib/importlib/_bootstrap.py')
-rw-r--r--Lib/importlib/_bootstrap.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/importlib/_bootstrap.py b/Lib/importlib/_bootstrap.py
index afc31ee..11df706 100644
--- a/Lib/importlib/_bootstrap.py
+++ b/Lib/importlib/_bootstrap.py
@@ -270,7 +270,7 @@ def _load_module_shim(self, fullname):
# Module specifications #######################################################
def _module_repr(module):
- # The implementation of ModuleType__repr__().
+ # The implementation of ModuleType.__repr__().
loader = getattr(module, '__loader__', None)
if hasattr(loader, 'module_repr'):
# As soon as BuiltinImporter, FrozenImporter, and NamespaceLoader
@@ -603,7 +603,7 @@ def _module_repr_from_spec(spec):
# Used by importlib.reload() and _load_module_shim().
def _exec(spec, module):
- """Execute the spec in an existing module's namespace."""
+ """Execute the spec's specified module in an existing module's namespace."""
name = spec.name
_imp.acquire_lock()
with _ModuleLockManager(name):
@@ -877,7 +877,7 @@ def _find_spec_legacy(finder, name, path):
def _find_spec(name, path, target=None):
- """Find a module's loader."""
+ """Find a module's spec."""
meta_path = sys.meta_path
if meta_path is None:
# PyImport_Cleanup() is running or has been called.