Author: Ronan Lamy <[email protected]>
Branch: unicode-utf8-test
Changeset: r93323:9fe5f582087d
Date: 2017-12-08 13:37 +0000
http://bitbucket.org/pypy/pypy/changeset/9fe5f582087d/
Log: fix space.newunicode
diff --git a/pypy/objspace/std/objspace.py b/pypy/objspace/std/objspace.py
--- a/pypy/objspace/std/objspace.py
+++ b/pypy/objspace/std/objspace.py
@@ -375,8 +375,8 @@
# XXX: kill me!
assert isinstance(unistr, unicode)
utf8s = unistr.encode("utf-8")
- length, flag = rutf8.check_utf8(utf8s, True)
- return self.newutf8(utf8s, length, flag)
+ length = rutf8.check_utf8(utf8s, True)
+ return self.newutf8(utf8s, length)
def type(self, w_obj):
jit.promote(w_obj.__class__)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit