summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-10-04 18:52:31 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2011-10-04 18:52:31 (GMT)
commite06e145943854d398adfe053cec757e269af0631 (patch)
tree914e8e6beaaf382619ae0ed4f016cfe30a9420a0 /Objects
parent17efeed28469c5fe15a61aa927b17cbde5a1160d (diff)
downloadcpython-e06e145943854d398adfe053cec757e269af0631.zip
cpython-e06e145943854d398adfe053cec757e269af0631.tar.gz
cpython-e06e145943854d398adfe053cec757e269af0631.tar.bz2
_PyUnicode_READY_REPLACE() cannot be used in unicode_subtype_new()
Diffstat (limited to 'Objects')
-rw-r--r--Objects/unicodeobject.c2
1 files changed, 1 insertions, 1 deletions
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 @@ 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);