Skip to content
Permalink
Browse files

issue #109: core: meta_path regression in newer Pythons

Python at some point (at least since https://bugs.python.org/issue14605)
began populating sys.meta_path with its internal importer classes,
meaning that interpreters no longer start with an empty sys.meta_path.
  • Loading branch information
dw committed Nov 7, 2018
1 parent 4db2168 commit 57504ba6ec1d42972c3732013bb573e4c93b3315
Showing with 1 addition and 1 deletion.
  1. +1 −1 mitogen/core.py
@@ -2791,7 +2791,7 @@ def _setup_importer(self):

self.importer = importer
self.router.importer = importer
sys.meta_path.append(self.importer)
sys.meta_path.insert(0, self.importer)

def _setup_package(self):
global mitogen

0 comments on commit 57504ba

Please sign in to comment.