Author: Manuel Jacob
Branch: refactor-str-types
Changeset: r65699:7218f93f845b
Date: 2013-07-26 22:16 +0200
http://bitbucket.org/pypy/pypy/changeset/7218f93f845b/

Log:    Fix.

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
@@ -144,8 +144,9 @@
             w_format_spec = space.call_function(space.w_unicode, w_format_spec)
         spec = space.unicode_w(w_format_spec)
         formatter = newformat.unicode_formatter(space, spec)
-        return formatter.format_string(unicode_from_object(space, self))
-        #return formatter.format_string(space.unicode_w(self))
+        self2 = unicode_from_object(space, self)
+        assert isinstance(self2, W_UnicodeObject)
+        return formatter.format_string(self2._value)
 
     def descr_mod(self, space, w_values):
         return mod_format(space, self, w_values, do_unicode=True)
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to