[pypy-commit] pypy unicode-utf8: (mattip, arigo)

arigo pypy.commits at gmail.com
Sat Mar 17 12:21:51 EDT 2018


Author: Armin Rigo <arigo at tunes.org>
Branch: unicode-utf8
Changeset: r93984:ead419b87760
Date: 2018-03-17 17:21 +0100
http://bitbucket.org/pypy/pypy/changeset/ead419b87760/

Log:	(mattip, arigo)

	Improve error message for now

diff --git a/pypy/module/array/interp_array.py b/pypy/module/array/interp_array.py
--- a/pypy/module/array/interp_array.py
+++ b/pypy/module/array/interp_array.py
@@ -1034,7 +1034,9 @@
                     return space.newutf8(rutf8.unichr_as_utf8(code), 1)
                 except ValueError:
                     raise oefmt(space.w_ValueError,
-                        "character is not in range [U+0000; U+10ffff]")
+                        "array contains a 32-bit integer that is outside "
+                        "the range [U+0000; U+10ffff] of valid unicode "
+                        "characters")
             assert 0, "unreachable"
 
         # interface


More information about the pypy-commit mailing list