Show More
@@ -245,6 +245,10 b' def isenabled():' | |||
|
245 | 245 | |
|
246 | 246 | def enable(): |
|
247 | 247 | "enable global demand-loading of modules" |
|
248 | # PyPy doesn't work with demand import. | |
|
249 | if '__pypy__' in sys.builtin_module_names: | |
|
250 | return | |
|
251 | ||
|
248 | 252 | if os.environ.get('HGDEMANDIMPORT') != 'disable': |
|
249 | 253 | builtins.__import__ = _demandimport |
|
250 | 254 |
General Comments 0
You need to be logged in to leave comments.
Login now