comparison mercurial/demandimport.py @ 3897:f47afa2401a2

demandimport: ignore _hashlib and email.mime This makes things work with Python2.5. A better fix would be to fix demandload to use __getattribute__ to be more transparent.
author Matt Mackall <mpm@selenic.com>
date Fri, 15 Dec 2006 12:38:18 -0600
parents abaee83ce0a6
children 316cd5b0c940
comparison
equal deleted inserted replaced
3896:070628929e1f 3897: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