[pypy-commit] pypy py3k: the default formatting string must be an unicode now

antocuni noreply at buildbot.pypy.org
Wed Mar 14 19:53:52 CET 2012


Author: Antonio Cuni <anto.cuni at gmail.com>
Branch: py3k
Changeset: r53583:7d475d86c2f6
Date: 2012-03-14 15:24 +0100
http://bitbucket.org/pypy/pypy/changeset/7d475d86c2f6/

Log:	the default formatting string must be an unicode now

diff --git a/pypy/module/__builtin__/operation.py b/pypy/module/__builtin__/operation.py
--- a/pypy/module/__builtin__/operation.py
+++ b/pypy/module/__builtin__/operation.py
@@ -208,6 +208,6 @@
 function).  Note that classes are callable."""
     return space.callable(w_object)
 
-def format(space, w_obj, w_format_spec=""):
+def format(space, w_obj, w_format_spec=u""):
     """Format a obj according to format_spec"""
     return space.format(w_obj, w_format_spec)


More information about the pypy-commit mailing list