Issue #8767: Restore building with --disable-unicode.

Original patch by Stefano Taschini.
This commit is contained in:
Martin v. Löwis 2012-05-20 10:42:17 +02:00
parent 77e77a1273
commit ed11a5d018
14 changed files with 63 additions and 9 deletions

View file

@ -2111,8 +2111,10 @@ _Py_ReadyTypes(void)
if (PyType_Ready(&PySet_Type) < 0)
Py_FatalError("Can't initialize set type");
#ifdef Py_USING_UNICODE
if (PyType_Ready(&PyUnicode_Type) < 0)
Py_FatalError("Can't initialize unicode type");
#endif
if (PyType_Ready(&PySlice_Type) < 0)
Py_FatalError("Can't initialize slice type");