Author: Ronan Lamy <ronan.l...@gmail.com>
Branch: unicode-utf8
Changeset: r90391:df262c600edd
Date: 2017-02-27 14:09 +0100
http://bitbucket.org/pypy/pypy/changeset/df262c600edd/

Log:    Add W_UnicodeObject._multi_chr() returning str

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
@@ -158,6 +158,9 @@
         assert len(char) == 1
         return char[0]
 
+    def _multi_chr(self, unichar):
+        return unichar.encode('utf8')
+
     _builder = UnicodeBuilder
 
     def _isupper(self, ch):
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to