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:
Antoine Pitrou 2009-05-31 18:05:51 +00:00
parent eb88cb8cd4
commit d11f7fcc0f

View file

@ -2156,6 +2156,9 @@ _Py_ReadyTypes(void)
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");
}