Author: Matti Picus <[email protected]>
Branch: 
Changeset: r96099:59c374d988c1
Date: 2019-02-19 21:22 +0200
http://bitbucket.org/pypy/pypy/changeset/59c374d988c1/

Log:    use rutf8.OutOfRange error

diff --git a/pypy/interpreter/unicodehelper.py 
b/pypy/interpreter/unicodehelper.py
--- a/pypy/interpreter/unicodehelper.py
+++ b/pypy/interpreter/unicodehelper.py
@@ -403,7 +403,7 @@
             try:
                 builder.append_code(chr)
                 pos += digits
-            except ValueError:
+            except rutf8.OutOfRange:
                 message = "illegal Unicode character"
                 res, pos = errorhandler(
                     errors, encoding, message, s, pos - 2, pos + digits)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to