[pypy-commit] pypy py3k: Argh, str() returned a bytes string!

amauryfa noreply at buildbot.pypy.org
Sun Dec 18 14:42:29 CET 2011


Author: Amaury Forgeot d'Arc <amauryfa at gmail.com>
Branch: py3k
Changeset: r50652:0445f697e0a1
Date: 2011-12-18 14:41 +0100
http://bitbucket.org/pypy/pypy/changeset/0445f697e0a1/

Log:	Argh, str() returned a bytes string! Run tests and fix.

diff --git a/pypy/objspace/std/unicodetype.py b/pypy/objspace/std/unicodetype.py
--- a/pypy/objspace/std/unicodetype.py
+++ b/pypy/objspace/std/unicodetype.py
@@ -292,7 +292,7 @@
         raise OperationError(space.w_TypeError, space.wrap(msg))
     return w_res
 
-def descr_new_(space, w_unicodetype, w_string='', w_encoding=None, w_errors=None):
+def descr_new_(space, w_unicodetype, w_string=u'', w_encoding=None, w_errors=None):
     # NB. the default value of w_obj is really a *wrapped* empty string:
     #     there is gateway magic at work
     from pypy.objspace.std.unicodeobject import W_UnicodeObject


More information about the pypy-commit mailing list