mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
Issue #8767: Restore building with --disable-unicode.
Original patch by Stefano Taschini.
This commit is contained in:
parent
77e77a1273
commit
ed11a5d018
14 changed files with 63 additions and 9 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue