Author: Matti Picus <matti.pi...@gmail.com>
Branch: unicode-utf8
Changeset: r95114:9d1232e7d075
Date: 2018-09-12 21:54 +0300
http://bitbucket.org/pypy/pypy/changeset/9d1232e7d075/

Log:    fix translation

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
@@ -138,6 +138,8 @@
     @staticmethod
     def convert_arg_to_w_unicode(space, w_other, strict=None):
         if space.is_w(space.type(w_other), space.w_unicode):
+            # XXX why do we need this for translation???
+            assert isinstance(w_other, W_UnicodeObject)
             return w_other
         if space.isinstance_w(w_other, space.w_bytes):
             return unicode_from_string(space, w_other)
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to