summaryrefslogtreecommitdiffstats
path: root/Lib/linecache.py
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2006-04-11 07:21:20 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2006-04-11 07:21:20 (GMT)
commit0c469854bcb6f7180d261bc1f6adb67f27656419 (patch)
tree128099860028ed3fc1231f844880abcd119850c7 /Lib/linecache.py
parentb94a368ff437427897c6161f28a88866b7ee3982 (diff)
downloadcpython-0c469854bcb6f7180d261bc1f6adb67f27656419.zip
cpython-0c469854bcb6f7180d261bc1f6adb67f27656419.tar.gz
cpython-0c469854bcb6f7180d261bc1f6adb67f27656419.tar.bz2
Adjust whitespace.
Diffstat (limited to 'Lib/linecache.py')
-rw-r--r--Lib/linecache.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/linecache.py b/Lib/linecache.py
index 8da1b02..f49695a 100644
--- a/Lib/linecache.py
+++ b/Lib/linecache.py
@@ -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] = (