Whitespace normalization.
This commit is contained in:
parent
3a5e8b1e36
commit
413c9226d2
|
@ -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())
|
||||
|
||||
|
|
Loading…
Reference in New Issue