[pypy-svn] r7333 - pypy/trunk/src/pypy/appspace

tismer at codespeak.net tismer at codespeak.net
Wed Nov 17 16:57:25 CET 2004


Author: tismer
Date: Wed Nov 17 16:57:25 2004
New Revision: 7333

Modified:
   pypy/trunk/src/pypy/appspace/_formatting.py
Log:
removed star args from format, because I wanted to try the
flow space on it, which cannot do this currently.

Modified: pypy/trunk/src/pypy/appspace/_formatting.py
==============================================================================
--- pypy/trunk/src/pypy/appspace/_formatting.py	(original)
+++ pypy/trunk/src/pypy/appspace/_formatting.py	Wed Nov 17 16:57:25 2004
@@ -377,8 +377,13 @@
                 except KeyError:
                     raise ValueError("unsupported format character "
                                      "'%s' (%x) at index %d"
-                                     %(t[0], ord(t[0]), fmtiter.i))
-                r.append(f(*t).format())
+                                     %(t[0], ord(t[0]), fmtiter.i))
+                # Trying to translate this using the flow space.
+                # Currently, star args give a problem there,
+                # so let's be explicit about the args:
+                # r.append(f(*t).format())
+                char, flags, width, prec, value = t
+                r.append(f(char, flags, width, prec, value).format())
             else:
                 # efficiency hack:
                 r.append(c + fmtiter.skip_to_fmt())



More information about the Pypy-commit mailing list