[Python-checkins] cpython: _PyUnicode_READY_REPLACE() cannot be used in unicode_subtype_new()

victor.stinner python-checkins at python.org
Tue Oct 4 20:52:54 CEST 2011


http://hg.python.org/cpython/rev/a81f5ced46a8
changeset:   72678:a81f5ced46a8
user:        Victor Stinner <victor.stinner at haypocalc.com>
date:        Tue Oct 04 20:52:31 2011 +0200
summary:
  _PyUnicode_READY_REPLACE() cannot be used in unicode_subtype_new()

files:
  Objects/unicodeobject.c |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
--- 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);

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list