Author: Amaury Forgeot d'Arc <[email protected]>
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
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit