mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	Kill execfile(), use exec() instead
This commit is contained in:
		
							parent
							
								
									41eaedd361
								
							
						
					
					
						commit
						016880229a
					
				
					 98 changed files with 179 additions and 341 deletions
				
			
		|  | @ -322,7 +322,12 @@ def __load(): | |||
| import argvemulator, os | ||||
| 
 | ||||
| argvemulator.ArgvCollector().mainloop() | ||||
| execfile(os.path.join(os.path.split(__file__)[0], "%(realmainprogram)s")) | ||||
| fp = os.path.join(os.path.split(__file__)[0], "%(realmainprogram)s") | ||||
| try: | ||||
|     script = fp.read() | ||||
| finally: | ||||
|     fp.close() | ||||
| exec(script) | ||||
| """ | ||||
| 
 | ||||
| # | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Neal Norwitz
						Neal Norwitz