Author: Matti Picus <[email protected]>
Branch: py3.6
Changeset: r96069:8fb002913c55
Date: 2019-02-18 16:45 +0200
http://bitbucket.org/pypy/pypy/changeset/8fb002913c55/
Log: fix error exposed by 7693e4a720ad
diff --git a/pypy/interpreter/error.py b/pypy/interpreter/error.py
--- a/pypy/interpreter/error.py
+++ b/pypy/interpreter/error.py
@@ -516,7 +516,7 @@
lgt += space.len_w(s)
elif fmt == 'T':
result = space.type(value).name
- lgt += len(result)
+ lgt += rutf8.codepoints_in_utf8(result)
elif fmt == 'N':
result = value.getname(space)
lgt += len(result)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit