diff -r 6f6c87888b22 -r 8fb5212652ec hgdemandimport/demandimportpy2.py --- a/hgdemandimport/demandimportpy2.py Tue Aug 15 10:15:31 2017 -0700 +++ b/hgdemandimport/demandimportpy2.py Fri Aug 18 11:08:17 2017 -0700 @@ -28,7 +28,6 @@ import __builtin__ as builtins import contextlib -import os import sys contextmanager = contextlib.contextmanager @@ -285,8 +284,7 @@ def enable(): "enable global demand-loading of modules" - if os.environ.get('HGDEMANDIMPORT') != 'disable': - builtins.__import__ = _demandimport + builtins.__import__ = _demandimport def disable(): "disable global demand-loading of modules"