Author: Maciej Fijalkowski <fij...@gmail.com>
Branch: 
Changeset: r51392:81aaf2060a57
Date: 2012-01-17 13:15 +0200
http://bitbucket.org/pypy/pypy/changeset/81aaf2060a57/

Log:    merge

diff --git a/pypy/objspace/std/unicodeobject.py 
b/pypy/objspace/std/unicodeobject.py
--- a/pypy/objspace/std/unicodeobject.py
+++ b/pypy/objspace/std/unicodeobject.py
@@ -216,7 +216,7 @@
 
 def _unicode_join_many_items(space, w_self, list_w, size):
     self = w_self._value
-    prealloc_size = 0
+    prealloc_size = len(self) * (size - 1)
     for i in range(size):
         prealloc_size += len(space.unicode_w(list_w[i]))
     sb = UnicodeBuilder(prealloc_size)
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to