Author: Carl Friedrich Bolz-Tereick <[email protected]>
Branch: py3.6
Changeset: r97747:ac3b88caa03e
Date: 2019-10-09 15:57 +0200
http://bitbucket.org/pypy/pypy/changeset/ac3b88caa03e/
Log: remove this hack, now that the fake objspace supports utf8_len_w
diff --git a/pypy/interpreter/baseobjspace.py b/pypy/interpreter/baseobjspace.py
--- a/pypy/interpreter/baseobjspace.py
+++ b/pypy/interpreter/baseobjspace.py
@@ -1787,8 +1787,7 @@
def convert_arg_to_w_unicode(self, w_obj, strict=None):
# XXX why convert_to_w_unicode does something slightly different?
from pypy.objspace.std.unicodeobject import W_UnicodeObject
- # for z_translation tests
- if hasattr(self, 'is_fake_objspace'): return self.newtext("foobar")
+ assert not hasattr(self, 'is_fake_objspace')
return W_UnicodeObject.convert_arg_to_w_unicode(self, w_obj, strict)
def utf8_len_w(self, w_obj):
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit