mirror of
				https://github.com/python/cpython.git
				synced 2025-11-03 23:21:29 +00:00 
			
		
		
		
	Uninitialized file type would lead to __exit__ lookup failure when site.py
tries to read *.pth files on interpreter startup.
This commit is contained in:
		
							parent
							
								
									eb88cb8cd4
								
							
						
					
					
						commit
						d11f7fcc0f
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		| 
						 | 
					@ -2156,6 +2156,9 @@ _Py_ReadyTypes(void)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (PyType_Ready(&PyMemberDescr_Type) < 0)
 | 
						if (PyType_Ready(&PyMemberDescr_Type) < 0)
 | 
				
			||||||
		Py_FatalError("Can't initialize member descriptor type");
 | 
							Py_FatalError("Can't initialize member descriptor type");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if (PyType_Ready(&PyFile_Type) < 0)
 | 
				
			||||||
 | 
							Py_FatalError("Can't initialize file type");
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue