Mercurial > cpython-lru_cache-weakref
diff Objects/unicodeobject.c @ 80072:eec0cafe171d 3.2
initialize more global type objects (closes #16369)
| author | Benjamin Peterson <benjamin@python.org> |
|---|---|
| date | Tue, 30 Oct 2012 23:21:10 -0400 |
| parents | 102df748572d |
| children | c838c9b117f1 9371bf2287c4 |
line wrap: on
line diff
--- a/Objects/unicodeobject.c Mon Oct 29 18:16:39 2012 -0500 +++ b/Objects/unicodeobject.c Tue Oct 30 23:21:10 2012 -0400 @@ -10079,6 +10079,12 @@ ); PyType_Ready(&EncodingMapType); + + if (PyType_Ready(&PyFieldNameIter_Type) < 0) + Py_FatalError("Can't initialize field name iterator type"); + + if (PyType_Ready(&PyFormatterIter_Type) < 0) + Py_FatalError("Can't initialize formatter iter type"); } /* Finalize the Unicode implementation */
