From: Victor Stinner Date: Mon, 3 Oct 2011 10:21:33 +0000 (+0200) Subject: resize_inplace() has been fixed: reenable this optimization X-Git-Tag: v3.3.0a1~1371 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=34411e17b0f77a2ae7b34fdb6b52ddcf5ea9ae3c;p=thirdparty%2FPython%2Fcpython.git resize_inplace() has been fixed: reenable this optimization --- diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 6e4ef3d413bf..2dea8a5a170b 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -1212,9 +1212,6 @@ unicode_resizable(PyObject *unicode) if (ch < 256 && unicode_latin1[ch] == unicode) return 0; } - /* FIXME: reenable resize_inplace */ - if (!PyUnicode_IS_COMPACT(unicode)) - return 0; return 1; }