Author: Philip Jenvey <[email protected]>
Branch: 
Changeset: r64638:bcfcca1e51e3
Date: 2013-05-28 14:16 -0700
http://bitbucket.org/pypy/pypy/changeset/bcfcca1e51e3/

Log:    utillize %N

diff --git a/pypy/objspace/std/objspace.py b/pypy/objspace/std/objspace.py
--- a/pypy/objspace/std/objspace.py
+++ b/pypy/objspace/std/objspace.py
@@ -364,8 +364,8 @@
             instance.user_setup(self, w_subtype)
         else:
             raise operationerrfmt(self.w_TypeError,
-                "%s.__new__(%s): only for the type %s",
-                w_type.name, w_subtype.getname(self), w_type.name)
+                                  "%N.__new__(%N): only for the type %N",
+                                  w_type, w_subtype, w_type)
         return instance
     allocate_instance._annspecialcase_ = "specialize:arg(1)"
 
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to