commit | d11f7fcc0f29df39595179c577da5ff83467fa5f | [log] [tgz] |
---|---|---|
author | Antoine Pitrou <solipsis@pitrou.net> | Sun May 31 18:05:51 2009 +0000 |
committer | Antoine Pitrou <solipsis@pitrou.net> | Sun May 31 18:05:51 2009 +0000 |
tree | aa1289b1831994f912a3d3eda1b2a0dc1ffefa09 | |
parent | eb88cb8cd44c52c9619b2137d501b8195ecebd79 [diff] |
Uninitialized file type would lead to __exit__ lookup failure when site.py tries to read *.pth files on interpreter startup.
diff --git a/Objects/object.c b/Objects/object.c index 95072af..0191ebe 100644 --- a/Objects/object.c +++ b/Objects/object.c
@@ -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"); }