diff options
Diffstat (limited to 'Lib/importlib')
-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 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 |