diff options
| author | Benjamin Peterson <benjamin@python.org> | 2012-10-30 23:21:10 -0400 |
|---|---|---|
| committer | Benjamin Peterson <benjamin@python.org> | 2012-10-30 23:21:10 -0400 |
| commit | c43112823b1f748822c43ad42566537580c02af2 (patch) | |
| tree | 38d69a0537c1246c02c64c5711e5efa07787e400 /Objects/unicodeobject.c | |
| parent | e9aeca7c248bab56201ee5949e0535f96b54865b (diff) | |
| download | cpython-git-c43112823b1f748822c43ad42566537580c02af2.tar.gz | |
initialize more global type objects (closes #16369)
Diffstat (limited to 'Objects/unicodeobject.c')
| -rw-r--r-- | Objects/unicodeobject.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 3ef9c9bbaf..35b424e33a 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -10079,6 +10079,12 @@ void _PyUnicode_Init(void) ); 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 */ |
