summaryrefslogtreecommitdiff
path: root/Lib/importlib
diff options
context:
space:
mode:
authorEric Snow <ericsnowcurrently@gmail.com>2013-10-03 12:08:55 -0600
committerEric Snow <ericsnowcurrently@gmail.com>2013-10-03 12:08:55 -0600
commite8bbfebee01634ad0d3c903b54343d050f452b49 (patch)
tree435e24b8ecea4641fb74942d8f4ca02d157354aa /Lib/importlib
parent0e61ed8400cbd3ad4e845f23f8e36ce989271f1b (diff)
downloadcpython-git-e8bbfebee01634ad0d3c903b54343d050f452b49.tar.gz
[issue19951] Fix docstring and use of _get_suppported_file_loaders() to reflect 2-tuples.
Diffstat (limited to 'Lib/importlib')
-rw-r--r--Lib/importlib/_bootstrap.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/importlib/_bootstrap.py b/Lib/importlib/_bootstrap.py
index 91740571be..0afe6a5983 100644
--- a/Lib/importlib/_bootstrap.py
+++ b/Lib/importlib/_bootstrap.py
@@ -881,7 +881,7 @@ class WindowsRegistryFinder:
_os.stat(filepath)
except OSError:
return None
- for loader, suffixes, _ in _get_supported_file_loaders():
+ for loader, suffixes in _get_supported_file_loaders():
if filepath.endswith(tuple(suffixes)):
return loader(fullname, filepath)
@@ -1670,7 +1670,7 @@ def _calc___package__(globals):
def _get_supported_file_loaders():
"""Returns a list of file-based module loaders.
- Each item is a tuple (loader, suffixes, allow_packages).
+ Each item is a tuple (loader, suffixes).
"""
extensions = ExtensionFileLoader, _imp.extension_suffixes()
source = SourceFileLoader, SOURCE_SUFFIXES