revert file loader order back to source-first

In #248 we changed _bootstrap_external to check for bytecode first, and
then check for source files when loading in the import process. Now that
we have our own meta_path entry, this change can be undone.
This commit is contained in:
ahgamut 2022-06-21 08:26:19 +05:30
parent 7d5dbe2925
commit f242ef4a09

View file

@ -1349,7 +1349,7 @@ def _get_supported_file_loaders():
# extensions = ExtensionFileLoader, _imp.extension_suffixes()
source = SourceFileLoader, SOURCE_SUFFIXES
bytecode = SourcelessFileLoader, BYTECODE_SUFFIXES
return [bytecode, source] #, extensions]
return [source, bytecode] #, extensions]
def _setup(_bootstrap_module):
"""Setup the path-based importers for importlib by importing needed