]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
resize_inplace() has been fixed: reenable this optimization
authorVictor Stinner <vstinner@wyplay.com>
Mon, 3 Oct 2011 10:21:33 +0000 (12:21 +0200)
committerVictor Stinner <vstinner@wyplay.com>
Mon, 3 Oct 2011 10:21:33 +0000 (12:21 +0200)
Objects/unicodeobject.c

index 6e4ef3d413bfdd84dcf443654ca9bc64040fad10..2dea8a5a170bb5eca6b6dd6bfc9d01f41ef9c703 100644 (file)
@@ -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;
 }