mercurial/demandimport.py
changeset 3894 f47afa2401a2
parent 3877 abaee83ce0a6
child 3898 316cd5b0c940
equal deleted inserted replaced
3893:070628929e1f 3894:f47afa2401a2
    90             # set requested submodules for demand load
    90             # set requested submodules for demand load
    91             if not(hasattr(mod, x)):
    91             if not(hasattr(mod, x)):
    92                 setattr(mod, x, _demandmod(x, mod.__dict__, mod.__dict__))
    92                 setattr(mod, x, _demandmod(x, mod.__dict__, mod.__dict__))
    93         return mod
    93         return mod
    94 
    94 
    95 ignore = []
    95 ignore = ['_hashlib', 'email.mime']
    96 
    96 
    97 def enable():
    97 def enable():
    98     "enable global demand-loading of modules"
    98     "enable global demand-loading of modules"
    99     __builtins__["__import__"] = _demandimport
    99     __builtins__["__import__"] = _demandimport
   100 
   100