[pypy-svn] r48515 - pypy/branch/unicode-objspace/pypy/objspace/std

fijal at codespeak.net fijal at codespeak.net
Sat Nov 10 17:18:36 CET 2007


Author: fijal
Date: Sat Nov 10 17:18:35 2007
New Revision: 48515

Modified:
   pypy/branch/unicode-objspace/pypy/objspace/std/formatting.py
Log:
Actually *run* the tests before checking in the fix


Modified: pypy/branch/unicode-objspace/pypy/objspace/std/formatting.py
==============================================================================
--- pypy/branch/unicode-objspace/pypy/objspace/std/formatting.py	(original)
+++ pypy/branch/unicode-objspace/pypy/objspace/std/formatting.py	Sat Nov 10 17:18:35 2007
@@ -435,11 +435,11 @@
             result = formatter.format()
         except NeedUnicodeFormattingError:
             # fall through to the unicode case
-            fmt = [c for c in fmt]     # string => list of unichars
+            fmt = unicode(fmt)
         else:
             return space.wrap(''.join(result))
     else:
-        fmt = space.unichars_w(w_fmt)
+        fmt = space.unicode_w(w_fmt)
     formatter = UnicodeFormatter(space, fmt, values_w, w_valuedict)
     result = formatter.format()
     return space.wrap(u''.join(result))



More information about the Pypy-commit mailing list