Tell _frozen_importlib to consider bytecode first (#248)

This commit is contained in:
Gautham 2021-08-18 10:37:27 +05:30 committed by Justine Tunney
parent ebb8c85496
commit 98ccbf44b1
7 changed files with 2896 additions and 2887 deletions

View file

@ -1364,7 +1364,7 @@ def _get_supported_file_loaders():
extensions = ExtensionFileLoader, _imp.extension_suffixes()
source = SourceFileLoader, SOURCE_SUFFIXES
bytecode = SourcelessFileLoader, BYTECODE_SUFFIXES
return [extensions, source, bytecode]
return [extensions, bytecode, source]
def _setup(_bootstrap_module):