Author: Armin Rigo <ar...@tunes.org>
Branch: 
Changeset: r91840:b86461902673
Date: 2017-07-08 17:03 +0200
http://bitbucket.org/pypy/pypy/changeset/b86461902673/

Log:    Match CPython's error message

diff --git a/pypy/module/__builtin__/functional.py 
b/pypy/module/__builtin__/functional.py
--- a/pypy/module/__builtin__/functional.py
+++ b/pypy/module/__builtin__/functional.py
@@ -348,7 +348,7 @@
         self.remaining = space.len_w(w_sequence) - 1
         if not space.issequence_w(w_sequence):
             raise oefmt(space.w_TypeError,
-                        "reversed() argument must be a sequence")
+                        "argument to reversed() must be a sequence")
         self.w_sequence = w_sequence
 
     def descr___iter__(self, space):
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to