From 413c9226d27a09526b0edbe58317426ea1df83a3 Mon Sep 17 00:00:00 2001 From: Tim Peters Date: Tue, 11 Apr 2006 01:44:26 +0000 Subject: [PATCH] Whitespace normalization. --- Lib/linecache.py | 4 ++-- Lib/test/test_zipimport.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Lib/linecache.py b/Lib/linecache.py index 696e1890472..8da1b029242 100644 --- a/Lib/linecache.py +++ b/Lib/linecache.py @@ -81,7 +81,7 @@ def updatecache(filename, module_globals=None): except os.error, msg: basename = os.path.split(filename)[1] - # Try for a __loader__, if available + # Try for a __loader__, if available if module_globals and '__loader__' in module_globals: name = module_globals.get('__name__') loader = module_globals['__loader__'] @@ -95,7 +95,7 @@ def updatecache(filename, module_globals=None): pass else: cache[filename] = ( - len(data), None, + len(data), None, [line+'\n' for line in data.splitlines()], fullname ) return cache[filename][2] diff --git a/Lib/test/test_zipimport.py b/Lib/test/test_zipimport.py index 0d46f0b3dd5..4e1a845aa4f 100644 --- a/Lib/test/test_zipimport.py +++ b/Lib/test/test_zipimport.py @@ -269,7 +269,7 @@ class UncompressedZipImportTestCase(ImportHooksBaseTestCase): def testGetCompiledSource(self): pyc = make_pyc(compile(test_src, "", "exec"), NOW) - files = {TESTMOD + ".py": (NOW, test_src), + files = {TESTMOD + ".py": (NOW, test_src), TESTMOD + pyc_ext: (NOW, pyc)} self.doTest(pyc_ext, files, TESTMOD, call=self.assertModuleSource) @@ -310,7 +310,7 @@ class UncompressedZipImportTestCase(ImportHooksBaseTestCase): module.do_raise() except: tb = sys.exc_info()[2].tb_next - + f,lno,n,line = extract_tb(tb, 1)[0] self.assertEqual(line, raise_src.strip())