mirror of
https://github.com/python/cpython.git
synced 2025-08-22 09:45:06 +00:00
Close #15386: There was a loophole that meant importlib.machinery and imp would sometimes reference an uninitialised copy of importlib._bootstrap
This commit is contained in:
parent
818b1186f9
commit
be7e49fd82
5 changed files with 27 additions and 5 deletions
|
@ -12,8 +12,8 @@ importers when locating support scripts as well as when importing modules.
|
|||
|
||||
import os
|
||||
import sys
|
||||
import importlib.machinery # importlib first so we can test #15386 via -m
|
||||
import imp
|
||||
import importlib.machinery
|
||||
from pkgutil import read_code, get_loader, get_importer
|
||||
|
||||
__all__ = [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue