[Python-checkins] r73076 - python/trunk/Objects/object.c

antoine.pitrou python-checkins at python.org
Sun May 31 20:05:51 CEST 2009


Author: antoine.pitrou
Date: Sun May 31 20:05:51 2009
New Revision: 73076

Log:
Uninitialized file type would lead to __exit__ lookup failure when site.py
tries to read *.pth files on interpreter startup.



Modified:
   python/trunk/Objects/object.c

Modified: python/trunk/Objects/object.c
==============================================================================
--- python/trunk/Objects/object.c	(original)
+++ python/trunk/Objects/object.c	Sun May 31 20:05:51 2009
@@ -2156,6 +2156,9 @@
 
 	if (PyType_Ready(&PyMemberDescr_Type) < 0)
 		Py_FatalError("Can't initialize member descriptor type");
+
+	if (PyType_Ready(&PyFile_Type) < 0)
+		Py_FatalError("Can't initialize file type");
 }
 
 


More information about the Python-checkins mailing list