diff -r 853001c84114 -r 670eb4fa1b86 hgdemandimport/demandimportpy3.py --- a/hgdemandimport/demandimportpy3.py Thu Apr 19 20:33:43 2018 +0900 +++ b/hgdemandimport/demandimportpy3.py Sat May 05 18:41:51 2018 -0700 @@ -40,7 +40,7 @@ """ def exec_module(self, module): """Make the module load lazily.""" - if _deactivated or module.__name__ in ignore: + if _deactivated or module.__name__ in ignores: self.loader.exec_module(module) else: super().exec_module(module) @@ -62,11 +62,11 @@ (_bytecode_loader, importlib.machinery.BYTECODE_SUFFIXES), ) -ignore = [] +ignores = set() -def init(ignorelist): - global ignore - ignore = ignorelist +def init(ignoreset): + global ignores + ignores = ignoreset def isenabled(): return _makefinder in sys.path_hooks and not _deactivated