]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
_PyUnicode_READY_REPLACE() cannot be used in unicode_subtype_new()
authorVictor Stinner <victor.stinner@haypocalc.com>
Tue, 4 Oct 2011 18:52:31 +0000 (20:52 +0200)
committerVictor Stinner <victor.stinner@haypocalc.com>
Tue, 4 Oct 2011 18:52:31 +0000 (20:52 +0200)
Objects/unicodeobject.c

index 3e2b8a2eaf1e4949c5a64051be718aa99c446ea2..b628eeb93a83e91d9960b5c2151dd5ef51ea03c3 100644 (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);