summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@wyplay.com>2011-10-03 12:21:33 +0200
committerVictor Stinner <vstinner@wyplay.com>2011-10-03 12:21:33 +0200
commit34411e17b0f77a2ae7b34fdb6b52ddcf5ea9ae3c (patch)
tree1abeb8d3763fda59e5b24e25674d2e53ef152897
parenta849a4b6b4c29f4cad0ee71a9fc5ebc16f6bb504 (diff)
downloadcpython-git-34411e17b0f77a2ae7b34fdb6b52ddcf5ea9ae3c.tar.gz
resize_inplace() has been fixed: reenable this optimization
-rw-r--r--Objects/unicodeobject.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
index 6e4ef3d413..2dea8a5a17 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;
}