diff options
author | Eric Snow <ericsnowcurrently@gmail.com> | 2013-10-03 18:08:55 (GMT) |
---|---|---|
committer | Eric Snow <ericsnowcurrently@gmail.com> | 2013-10-03 18:08:55 (GMT) |
commit | efbc4752781463dfb6a61baf6ce8b3c0bf3d5ee9 (patch) | |
tree | 52072ccf791b2fd9a5dbab874e3973208504a5c0 /Lib | |
parent | 60b183407cbcd19b211c2dd7ed9a59ff189844a8 (diff) | |
download | cpython-efbc4752781463dfb6a61baf6ce8b3c0bf3d5ee9.zip cpython-efbc4752781463dfb6a61baf6ce8b3c0bf3d5ee9.tar.gz cpython-efbc4752781463dfb6a61baf6ce8b3c0bf3d5ee9.tar.bz2 |
[issue19151] Fix docstring and use of _get_suppported_file_loaders() to reflect 2-tuples.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/importlib/_bootstrap.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/importlib/_bootstrap.py b/Lib/importlib/_bootstrap.py index ff10308..e40ec92 100644 --- a/Lib/importlib/_bootstrap.py +++ b/Lib/importlib/_bootstrap.py @@ -781,7 +781,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) @@ -1643,7 +1643,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 |