Author: Armin Rigo <[email protected]>
Branch: unicode-utf8
Changeset: r92739:6c1d3144913e
Date: 2017-10-12 18:23 +0200
http://bitbucket.org/pypy/pypy/changeset/6c1d3144913e/

Log:    Another fix by reverting this piece of code to default

diff --git a/pypy/module/_codecs/interp_codecs.py 
b/pypy/module/_codecs/interp_codecs.py
--- a/pypy/module/_codecs/interp_codecs.py
+++ b/pypy/module/_codecs/interp_codecs.py
@@ -73,7 +73,13 @@
         return self._make_errorhandler(space, True)
 
     def make_encode_errorhandler(self, space):
-        return self._make_errorhandler(space, False)
+        errorhandler = self._make_errorhandler(space, False)
+        def encode_call_errorhandler(errors, encoding, reason, input, startpos,
+                                     endpos):
+            replace, newpos = errorhandler(errors, encoding, reason, input,
+                                           startpos, endpos)
+            return replace, None, newpos
+        return encode_call_errorhandler
 
     def get_unicodedata_handler(self, space):
         if self.unicodedata_handler:
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to