Author: Philip Jenvey <pjen...@underboss.org>
Branch: 
Changeset: r68930:e3f4f801f664
Date: 2014-01-24 17:20 -0800
http://bitbucket.org/pypy/pypy/changeset/e3f4f801f664/

Log:    oops, give operationerrfmt a constant

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
@@ -300,9 +300,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))
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to