Kaydet (Commit) 413c9226 authored tarafından Tim Peters's avatar Tim Peters

Whitespace normalization.

üst 3a5e8b1e
......@@ -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]
......
......@@ -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())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment