Author: Matti Picus <[email protected]>
Branch: unicode-utf8-py3
Changeset: r95685:58a8827b62dc
Date: 2019-01-21 14:05 +0200
http://bitbucket.org/pypy/pypy/changeset/58a8827b62dc/

Log:    fix definitely broken code

diff --git a/pypy/interpreter/unicodehelper.py 
b/pypy/interpreter/unicodehelper.py
--- a/pypy/interpreter/unicodehelper.py
+++ b/pypy/interpreter/unicodehelper.py
@@ -114,9 +114,8 @@
     elif _MACOSX:
         utf8 = space.utf8_w(w_uni)
         errorhandler=state.encode_error_handler,
-        bytes = unicodehelper.utf8_encode_utf_8(
-            utf8, 'surrogateescape',
-            allow_surrogates=False)
+        bytes = utf8_encode_utf_8(utf8, 'surrogateescape', errorhandler,
+                                  allow_surrogates=False)
     elif space.sys.filesystemencoding is None or state.codec_need_encodings:
         # bootstrap check: if the filesystemencoding isn't initialized
         # or the filesystem codec is implemented in Python we cannot
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to