Author: Matti Picus <matti.pi...@gmail.com>
Branch: unicode-utf8
Changeset: r95543:b8815fb0c04d
Date: 2018-12-25 22:32 +0200
http://bitbucket.org/pypy/pypy/changeset/b8815fb0c04d/

Log:    str_w uses ascii encoding

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
@@ -87,7 +87,7 @@
         return space.newint(uid)
 
     def str_w(self, space):
-        return space.text_w(encode_object(space, self, 'utf8', 'strict'))
+        return space.text_w(encode_object(space, self, 'ascii', 'strict'))
 
     def utf8_w(self, space):
         return self._utf8
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to