[pypy-commit] pypy py3k: merge default

pjenvey noreply at buildbot.pypy.org
Sat Jan 25 02:21:18 CET 2014


Author: Philip Jenvey <pjenvey at underboss.org>
Branch: py3k
Changeset: r68931:021856169522
Date: 2014-01-24 17:20 -0800
http://bitbucket.org/pypy/pypy/changeset/021856169522/

Log:	merge default

diff --git a/pypy/objspace/std/unicodeobject.py b/pypy/objspace/std/unicodeobject.py
--- a/pypy/objspace/std/unicodeobject.py
+++ b/pypy/objspace/std/unicodeobject.py
@@ -362,9 +362,9 @@
                 elif space.isinstance_w(w_newval, space.w_int):
                     newval = space.int_w(w_newval)
                     if newval < 0 or newval > maxunicode:
-                        msg = ("character mapping must be in range(0x%x)" %
-                               (maxunicode + 1,))
-                        raise operationerrfmt(space.w_TypeError, msg)
+                        raise operationerrfmt(space.w_TypeError,
+                                              "character mapping must be in "
+                                              "range(%s)", hex(maxunicode + 1))
                     result.append(unichr(newval))
                 elif space.isinstance_w(w_newval, space.w_unicode):
                     result.append(space.unicode_w(w_newval))


More information about the pypy-commit mailing list