Author: Amaury Forgeot d'Arc <amaur...@gmail.com>
Branch: py3.6
Changeset: r95537:0f59af55378c
Date: 2018-08-05 17:33 +0200
http://bitbucket.org/pypy/pypy/changeset/0f59af55378c/

Log:    Port CPython commit 91108f0: Issue #25210: Change error message of
        do_richcompare()

diff --git a/pypy/objspace/descroperation.py b/pypy/objspace/descroperation.py
--- a/pypy/objspace/descroperation.py
+++ b/pypy/objspace/descroperation.py
@@ -619,7 +619,8 @@
         #
         # if we arrived here, they are unorderable
         raise oefmt(space.w_TypeError,
-                    "unorderable types: %T %s %T", w_obj1, symbol, w_obj2)
+                    "'%s' not supported between instances of '%T' and '%T'",
+                    symbol, w_obj1, w_obj2)
 
     return func_with_new_name(comparison_impl, 
'comparison_%s_impl'%left.strip('_'))
 
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to