Author: Amaury Forgeot d'Arc <amaur...@gmail.com> Branch: Changeset: r75906:fd175f59c77f Date: 2015-02-15 20:13 +0100 http://bitbucket.org/pypy/pypy/changeset/fd175f59c77f/
Log: Oops, fix translation diff --git a/pypy/interpreter/unicodehelper.py b/pypy/interpreter/unicodehelper.py --- a/pypy/interpreter/unicodehelper.py +++ b/pypy/interpreter/unicodehelper.py @@ -62,7 +62,10 @@ return result def encode_utf8(space, uni): + # Note that this function never raises UnicodeEncodeError, + # since surrogate pairs are allowed. + # This is not the case with Python3. return runicode.unicode_encode_utf_8( uni, len(uni), "strict", - errorhandler=encode_error_handler(space), + errorhandler=rpy_encode_error_handler(), allow_surrogates=True) _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit