]> granicus.if.org Git - python/commitdiff
Adjust whitespace.
authorNeal Norwitz <nnorwitz@gmail.com>
Tue, 11 Apr 2006 07:21:20 +0000 (07:21 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Tue, 11 Apr 2006 07:21:20 +0000 (07:21 +0000)
Lib/linecache.py
Lib/site.py

index 8da1b0292420128ae76873ee8f31874777c09a56..f49695ac1cec88c87b428e9d18a7324ffc79ce9a 100644 (file)
@@ -37,7 +37,7 @@ def getlines(filename, module_globals=None):
     if filename in cache:
         return cache[filename][2]
     else:
-        return updatecache(filename,module_globals)
+        return updatecache(filename, module_globals)
 
 
 def checkcache(filename=None):
@@ -85,13 +85,13 @@ def updatecache(filename, module_globals=None):
         if module_globals and '__loader__' in module_globals:
             name = module_globals.get('__name__')
             loader = module_globals['__loader__']
-            get_source = getattr(loader, 'get_source' ,None)
+            get_source = getattr(loader, 'get_source'None)
 
             if name and get_source:
                 if basename.startswith(name.split('.')[-1]+'.'):
                     try:
                         data = get_source(name)
-                    except (ImportError,IOError):
+                    except (ImportError, IOError):
                         pass
                     else:
                         cache[filename] = (
index 80749797e000626f5ca4f9e6f506322990f6991d..c44c3937ecf74eabb2de812aaba721d660e82bc0 100644 (file)
@@ -69,7 +69,7 @@ def makepath(*paths):
 def abs__file__():
     """Set all module' __file__ attribute to an absolute path"""
     for m in sys.modules.values():
-        if hasattr(m,'__loader__'):
+        if hasattr(m, '__loader__'):
             continue   # don't mess with a PEP 302-supplied __file__
         try:
             m.__file__ = os.path.abspath(m.__file__)