_PyUnicode_READY_REPLACE() cannot be used in unicode_subtype_new()

This commit is contained in:
Victor Stinner 2011-10-04 20:52:31 +02:00
parent 17efeed284
commit e06e145943
1 changed files with 1 additions and 1 deletions

View File

@ -12949,7 +12949,7 @@ unicode_subtype_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
if (unicode == NULL)
return NULL;
assert(_PyUnicode_CHECK(unicode));
if (_PyUnicode_READY_REPLACE(&unicode))
if (PyUnicode_READY(unicode))
return NULL;
self = (PyUnicodeObject *) type->tp_alloc(type, 0);