Mercurial > cpython-lru_cache-weakref
diff Objects/object.c @ 77072:d7aff4423172 2.7
Issue #8767: Restore building with --disable-unicode.
Original patch by Stefano Taschini.
| author | Martin v. Löwis <martin@v.loewis.de> |
|---|---|
| date | Sun, 20 May 2012 10:42:17 +0200 |
| parents | a0f43f4481e0 |
| children | 5a2ef447b80d |
line wrap: on
line diff
--- a/Objects/object.c Sat May 19 23:35:05 2012 -0700 +++ b/Objects/object.c Sun May 20 10:42:17 2012 +0200 @@ -2111,8 +2111,10 @@ 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");
