From 34411e17b0f77a2ae7b34fdb6b52ddcf5ea9ae3c Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Mon, 3 Oct 2011 12:21:33 +0200 Subject: [PATCH] resize_inplace() has been fixed: reenable this optimization --- Objects/unicodeobject.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 6e4ef3d413b..2dea8a5a170 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; }