Mercurial > public > mercurial-scm > hg-stable
diff mercurial/packagescan.py @ 2600:c4325f0a9b91
clean up trailing white space.
author | Vadim Gelfer <vadim.gelfer@gmail.com> |
---|---|
date | Wed, 12 Jul 2006 08:28:00 -0700 |
parents | 976b6b2a1613 |
children | 345bac2bc4ec 0171a5432621 |
line wrap: on
line diff
--- a/mercurial/packagescan.py Wed Jul 12 09:01:10 2006 +0200 +++ b/mercurial/packagescan.py Wed Jul 12 08:28:00 2006 -0700 @@ -17,12 +17,12 @@ sys.modules['mercurial.demandload'] = sys.modules[__name__] # Requiredmodules contains the modules imported by demandload. -# Please note that demandload can be invoked before the +# Please note that demandload can be invoked before the # mercurial.packagescan.scan method is invoked in case a mercurial # module is imported. -requiredmodules = {} +requiredmodules = {} def demandload(scope, modules): - """ fake demandload function that collects the required modules + """ fake demandload function that collects the required modules foo import foo foo bar import foo, bar foo.bar import foo.bar @@ -49,7 +49,7 @@ scope[mn] = mod requiredmodules[mod.__name__] = 1 if len(comp) == i: break - mod = getattr(mod,comp[i]) + mod = getattr(mod,comp[i]) mn = string.join(comp[:i+1],'.') i += 1 else: