Author: Matti Picus <[email protected]>
Branch: py3.6
Changeset: r96229:d4d3c9ef7fcf
Date: 2019-03-09 20:44 +0200
http://bitbucket.org/pypy/pypy/changeset/d4d3c9ef7fcf/
Log: merge default into branch
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
@@ -41,7 +41,7 @@
if not we_are_translated():
try:
# best effort, too expensive to handle surrogates
- ulength = len(utf8str.decode('utf8'))
+ ulength = rutf8.codepoints_in_utf(utf8str)
except:
ulength = length
assert ulength == length
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit