[pypy-svn] r76120 - pypy/branch/fast-forward/pypy/objspace/std

benjamin at codespeak.net benjamin at codespeak.net
Mon Jul 12 01:24:13 CEST 2010


Author: benjamin
Date: Mon Jul 12 01:24:12 2010
New Revision: 76120

Modified:
   pypy/branch/fast-forward/pypy/objspace/std/newformat.py
Log:
list doesn't work on strings either

Modified: pypy/branch/fast-forward/pypy/objspace/std/newformat.py
==============================================================================
--- pypy/branch/fast-forward/pypy/objspace/std/newformat.py	(original)
+++ pypy/branch/fast-forward/pypy/objspace/std/newformat.py	Mon Jul 12 01:24:12 2010
@@ -514,7 +514,8 @@
     def _fill_digits(self, buf, digits, d_state, n_chars, n_zeros,
                      thousands_sep):
         if thousands_sep:
-            buf.extend(list(thousands_sep))
+            for c in thousands_sep:
+                buf.append(c)
         for i in range(d_state - 1, d_state - n_chars - 1, -1):
             buf.append(digits[i])
         for i in range(n_zeros):



More information about the Pypy-commit mailing list