]> granicus.if.org Git - python/commit
bpo-33128 Fix duplicated call to importlib._install_external_importers (GH-6273)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 25 Apr 2018 02:48:04 +0000 (19:48 -0700)
committerGitHub <noreply@github.com>
Wed, 25 Apr 2018 02:48:04 +0000 (19:48 -0700)
commit52a5a17338dfa7fed259027e1ecceba9c8491189
tree6348136073f5fa18b3e51e281350388dca0ebb18
parent75a3e3d5bc0be1ce41289b661e7c53039cf3d5ba
bpo-33128 Fix duplicated call to importlib._install_external_importers  (GH-6273)

External importers were being added in both phases of the import
system initialisation.

They're only supposed to be added in the second phase, after the
import machinery has been appropriately configured.
(cherry picked from commit 0977091dca59709864b14cfc129388f1f0de7bf7)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
Lib/test/test_sys.py
Misc/NEWS.d/next/Core and Builtins/2018-04-24-22-31-04.bpo-33128.g2yLuf.rst [new file with mode: 0644]
Python/pylifecycle.c