changeset 3926:de6ae8f016af

demandimport: handle already-loaded nested modules in subload
author Brendan Cully <brendan@kublai.com>
date Sun, 17 Dec 2006 18:34:42 -0800
parents 693eec9570f3
children a8bd7280330f
files mercurial/demandimport.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/demandimport.py	Sun Dec 17 15:00:56 2006 -0600
+++ b/mercurial/demandimport.py	Sun Dec 17 18:34:42 2006 -0800
@@ -51,7 +51,7 @@
                     h, t = p.split('.', 1)
                 if not hasattr(mod, h):
                     setattr(mod, h, _demandmod(p, mod.__dict__, mod.__dict__))
-                else:
+                elif t:
                     subload(getattr(mod, h), t)
 
             for x in after: