commit | e06e145943854d398adfe053cec757e269af0631 | [log] [tgz] |
---|---|---|
author | Victor Stinner <victor.stinner@haypocalc.com> | Tue Oct 04 20:52:31 2011 +0200 |
committer | Victor Stinner <victor.stinner@haypocalc.com> | Tue Oct 04 20:52:31 2011 +0200 |
tree | 914e8e6beaaf382619ae0ed4f016cfe30a9420a0 | |
parent | 17efeed28469c5fe15a61aa927b17cbde5a1160d [diff] [blame] |
_PyUnicode_READY_REPLACE() cannot be used in unicode_subtype_new()
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 3e2b8a2..b628eeb 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c
@@ -12949,7 +12949,7 @@ 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);