mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 05:31:20 +00:00 
			
		
		
		
	Renamed locals to better reflect their meanings.
This commit is contained in:
		
							parent
							
								
									b6ecc165f2
								
							
						
					
					
						commit
						2a5f656d0c
					
				
					 1 changed files with 6 additions and 6 deletions
				
			
		|  | @ -15,16 +15,16 @@ def testCompileLibrary(self): | |||
|         testdir = os.path.dirname(test.test_support.__file__) | ||||
| 
 | ||||
|         for dir in [libdir, testdir]: | ||||
|             for path in os.listdir(dir): | ||||
|                 if not path.endswith(".py"): | ||||
|             for basename in os.listdir(dir): | ||||
|                 if not basename.endswith(".py"): | ||||
|                     continue | ||||
|                 fpath = os.path.join(dir, path) | ||||
|                 path = os.path.join(dir, basename) | ||||
|                 if test.test_support.verbose: | ||||
|                     print "compiling", fpath | ||||
|                 f = open(fpath) | ||||
|                     print "compiling", path | ||||
|                 f = open(path) | ||||
|                 buf = f.read() | ||||
|                 f.close() | ||||
|                 compiler.compile(buf, path, "exec") | ||||
|                 compiler.compile(buf, basename, "exec") | ||||
| 
 | ||||
| def test_main(): | ||||
|     test.test_support.requires("compiler") | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Tim Peters
						Tim Peters