Mercurial > hg
changeset 4627:d4e4d0f4fba4
Merge with crew
author | Lee Cantey <lcantey@gmail.com> |
---|---|
date | Mon, 18 Jun 2007 15:06:14 -0700 |
parents | eb99af2d845e (diff) eaf87cd19337 (current diff) |
children | 02956be66a58 |
files | |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/demandimport.py Mon Jun 18 14:52:31 2007 -0700 +++ b/mercurial/demandimport.py Mon Jun 18 15:06:14 2007 -0700 @@ -96,6 +96,8 @@ mod = _origimport(name, globals, locals) # recurse down the module chain for comp in name.split('.')[1:]: + if not hasattr(mod, comp): + setattr(mod, comp, _demandmod(comp, mod.__dict__, mod.__dict__)) mod = getattr(mod, comp) for x in fromlist: # set requested submodules for demand load