mirror of https://github.com/python/cpython
_PyUnicode_READY_REPLACE() cannot be used in unicode_subtype_new()
This commit is contained in:
parent
17efeed284
commit
e06e145943
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue