Author: Matti Picus <[email protected]>
Branch: unicode-utf8-py3
Changeset: r94939:ba04669afe92
Date: 2018-08-04 14:52 -0700
http://bitbucket.org/pypy/pypy/changeset/ba04669afe92/

Log:    make realunicode_w return rpython unicode

diff --git a/pypy/interpreter/baseobjspace.py b/pypy/interpreter/baseobjspace.py
--- a/pypy/interpreter/baseobjspace.py
+++ b/pypy/interpreter/baseobjspace.py
@@ -1723,7 +1723,7 @@
     def realunicode_w(self, w_obj):
         from pypy.interpreter.unicodehelper import decode_utf8sp
         utf8 = self.utf8_w(w_obj)
-        return decode_utf8sp(self, utf8)[0]
+        return decode_utf8sp(self, utf8)[0].decode('utf8')
 
     def utf8_0_w(self, w_obj):
         "Like utf8_w, but rejects strings with NUL bytes."
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to