Author: Matti Picus <[email protected]>
Branch: unicode-utf8-py3
Changeset: r95047:6105ef49d9ca
Date: 2018-08-30 15:14 +0200
http://bitbucket.org/pypy/pypy/changeset/6105ef49d9ca/

Log:    change exception type

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
@@ -832,7 +832,7 @@
             # Charmap may return a number
             x = space.int_w(w_ch)
             if not 0 <= x <= 0x10FFFF:
-                raise oefmt(space.w_TypeError,
+                raise oefmt(space.w_ValueError,
                     "character mapping must be in range(0x110000)")
             return rutf8.unichr_as_utf8(x)
         elif space.is_w(w_ch, space.w_None):
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to