mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 07:31:38 +00:00 
			
		
		
		
	Fix use of 'file' as a variable name.
(I've tested the fixes, but please proofread anyway.)
This commit is contained in:
		
							parent
							
								
									bf1bef820c
								
							
						
					
					
						commit
						ac6df95d07
					
				
					 16 changed files with 108 additions and 107 deletions
				
			
		| 
						 | 
				
			
			@ -42,11 +42,11 @@ def main():
 | 
			
		|||
            undefs.append(a)
 | 
			
		||||
    if not args:
 | 
			
		||||
        args = ['-']
 | 
			
		||||
    for file in args:
 | 
			
		||||
        if file == '-':
 | 
			
		||||
    for filename in args:
 | 
			
		||||
        if filename == '-':
 | 
			
		||||
            process(sys.stdin, sys.stdout)
 | 
			
		||||
        else:
 | 
			
		||||
            f = open(file, 'r')
 | 
			
		||||
            f = open(filename, 'r')
 | 
			
		||||
            process(f, sys.stdout)
 | 
			
		||||
            f.close()
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue