mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	never close the file in imp.load_...
This commit is contained in:
		
							parent
							
								
									a83f270a4b
								
							
						
					
					
						commit
						ce0a6ded4d
					
				
					 1 changed files with 0 additions and 6 deletions
				
			
		|  | @ -857,8 +857,6 @@ imp_load_compiled(self, args) | |||
| 	if (fp == NULL) | ||||
| 		return NULL; | ||||
| 	m = load_compiled_module(name, pathname, fp); | ||||
| 	if (fob == NULL) | ||||
| 		fclose(fp); | ||||
| 	return m; | ||||
| } | ||||
| 
 | ||||
|  | @ -877,8 +875,6 @@ imp_load_dynamic(self, args) | |||
| 	if (fob) | ||||
| 		fp = get_file(pathname, fob, "r"); | ||||
| 	m = load_dynamic_module(name, pathname, fp); | ||||
| 	if (fob == NULL) | ||||
| 		fclose(fp); | ||||
| 	return m; | ||||
| } | ||||
| 
 | ||||
|  | @ -898,8 +894,6 @@ imp_load_source(self, args) | |||
| 	if (fp == NULL) | ||||
| 		return NULL; | ||||
| 	m = load_source_module(name, pathname, fp); | ||||
| 	if (fob == NULL) | ||||
| 		fclose(fp); | ||||
| 	return m; | ||||
| } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Guido van Rossum
						Guido van Rossum