[pypy-commit] pypy unicode-utf8: fix translation
mattip
pypy.commits at gmail.com
Wed Sep 12 14:55:35 EDT 2018
Author: Matti Picus <matti.picus at 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)
More information about the pypy-commit
mailing list