[Python-checkins] r45253 - in python/trunk/Lib: linecache.py test/test_zipimport.py

tim.peters python-checkins at python.org
Tue Apr 11 03:44:27 CEST 2006


Author: tim.peters
Date: Tue Apr 11 03:44:26 2006
New Revision: 45253
Modified:
 python/trunk/Lib/linecache.py
 python/trunk/Lib/test/test_zipimport.py
Log:
Whitespace normalization.
Modified: python/trunk/Lib/linecache.py
==============================================================================
--- python/trunk/Lib/linecache.py	(original)
+++ python/trunk/Lib/linecache.py	Tue Apr 11 03:44:26 2006
@@ -81,7 +81,7 @@
 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 @@
 pass
 else:
 cache[filename] = (
- len(data), None, 
+ len(data), None,
 [line+'\n' for line in data.splitlines()], fullname
 )
 return cache[filename][2]
Modified: python/trunk/Lib/test/test_zipimport.py
==============================================================================
--- python/trunk/Lib/test/test_zipimport.py	(original)
+++ python/trunk/Lib/test/test_zipimport.py	Tue Apr 11 03:44:26 2006
@@ -269,7 +269,7 @@
 
 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 @@
 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())
 


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /