Mercurial > hg
comparison mercurial/demandimport.py @ 3927:a8bd7280330f
demandimport: blacklist _hashlib again (imported in ImportError try block)
author | Brendan Cully <brendan@kublai.com> |
---|---|
date | Sun, 17 Dec 2006 18:45:46 -0800 |
parents | de6ae8f016af |
children | 33988aaa1652 |
comparison
equal
deleted
inserted
replaced
3926:de6ae8f016af | 3927:a8bd7280330f |
---|---|
101 # set requested submodules for demand load | 101 # set requested submodules for demand load |
102 if not(hasattr(mod, x)): | 102 if not(hasattr(mod, x)): |
103 setattr(mod, x, _demandmod(x, mod.__dict__, mod.__dict__)) | 103 setattr(mod, x, _demandmod(x, mod.__dict__, mod.__dict__)) |
104 return mod | 104 return mod |
105 | 105 |
106 ignore = [] | 106 ignore = ['_hashlib'] |
107 | 107 |
108 def enable(): | 108 def enable(): |
109 "enable global demand-loading of modules" | 109 "enable global demand-loading of modules" |
110 __builtins__["__import__"] = _demandimport | 110 __builtins__["__import__"] = _demandimport |
111 | 111 |