From: Victor Stinner Date: Tue, 4 Oct 2011 18:52:31 +0000 (+0200) Subject: _PyUnicode_READY_REPLACE() cannot be used in unicode_subtype_new() X-Git-Tag: v3.3.0a1~1324^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e06e145943854d398adfe053cec757e269af0631;p=thirdparty%2FPython%2Fcpython.git _PyUnicode_READY_REPLACE() cannot be used in unicode_subtype_new() --- diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 3e2b8a2eaf1e..b628eeb93a83 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -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);