Author: Matti Picus <matti.pi...@gmail.com>
Branch: unicode-utf8-py3
Changeset: r95346:6c473117814d
Date: 2018-11-20 00:24 -0800
http://bitbucket.org/pypy/pypy/changeset/6c473117814d/

Log:    if encode errorhandler returns bytes, do not check it

diff --git a/pypy/interpreter/unicodehelper.py 
b/pypy/interpreter/unicodehelper.py
--- a/pypy/interpreter/unicodehelper.py
+++ b/pypy/interpreter/unicodehelper.py
@@ -326,9 +326,9 @@
                     result.append(chr(cp))
             else:
                 for ch in res:
-                    if ord(ch) > 0x80:
-                        errorhandler("strict", 'ascii', msg, s, startindex, 
index)
-                        raise RuntimeError('error handler should not have 
returned')
+                    #if ord(ch) > 0x80:
+                    #    errorhandler("strict", 'ascii', msg, s, startindex, 
index)
+                    #    raise RuntimeError('error handler should not have 
returned')
                     result.append(ch)
             pos = rutf8._pos_at_index(s, newindex)
     return result.build()
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to