Author: fijal Branch: unicode-utf8 Changeset: r90401:e4861071cd46 Date: 2017-02-27 15:11 +0100 http://bitbucket.org/pypy/pypy/changeset/e4861071cd46/
Log: fix diff --git a/pypy/interpreter/unicodehelper.py b/pypy/interpreter/unicodehelper.py --- a/pypy/interpreter/unicodehelper.py +++ b/pypy/interpreter/unicodehelper.py @@ -42,7 +42,7 @@ # XXX that guy does not belong in runicode (nor in rutf8) result_u, consumed = runicode.str_decode_unicode_escape( string, len(string), "strict", - final=True, errorhandler=decode_error_handler(space), + final=True, errorhandler=DecodeWrapper(decode_error_handler(space)).handle, unicodedata_handler=unicodedata_handler) return result_u.encode('utf8'), len(result_u) @@ -51,7 +51,7 @@ # XXX that guy does not belong in runicode (nor in rutf8) result_u, consumed = runicode.str_decode_raw_unicode_escape( string, len(string), "strict", - final=True, errorhandler=decode_error_handler(space)) + final=True, errorhandler=DecodeWrapper(decode_error_handler(space)).handle) return result_u.encode('utf8'), len(result_u) def check_utf8(space, string): _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit