Author: Ronan Lamy <[email protected]>
Branch: unicode-utf8
Changeset: r93380:11874bd5e944
Date: 2017-12-12 02:49 +0000
http://bitbucket.org/pypy/pypy/changeset/11874bd5e944/
Log: fix
diff --git a/pypy/interpreter/unicodehelper.py
b/pypy/interpreter/unicodehelper.py
--- a/pypy/interpreter/unicodehelper.py
+++ b/pypy/interpreter/unicodehelper.py
@@ -27,7 +27,7 @@
# Fast version of the "strict" errors handler.
def raise_unicode_exception_encode(errors, encoding, msg, utf8,
startingpos, endingpos):
- u_len = rutf8.get_utf8_length(utf8, True)
+ u_len = rutf8.get_utf8_length(utf8)
raise OperationError(space.w_UnicodeEncodeError,
space.newtuple([space.newtext(encoding),
space.newutf8(utf8, u_len),
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit