mercurial/packagescan.py
changeset 2600 c4325f0a9b91
parent 2497 976b6b2a1613
child 2859 345bac2bc4ec
child 2995 0171a5432621
--- 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: