mirror of
https://github.com/python/cpython.git
synced 2025-08-29 21:25:01 +00:00
_PyUnicode_READY_REPLACE() cannot be used in unicode_subtype_new()
This commit is contained in:
parent
17efeed284
commit
e06e145943
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue