[pypy-commit] pypy py3.5: turn string format into argument of oefmt (translation issue)

plan_rich pypy.commits at gmail.com
Mon Oct 10 05:55:02 EDT 2016


Author: Richard Plangger <planrichi at gmail.com>
Branch: py3.5
Changeset: r87689:4c664c7fdba2
Date: 2016-10-10 11:54 +0200
http://bitbucket.org/pypy/pypy/changeset/4c664c7fdba2/

Log:	turn string format into argument of oefmt (translation issue)

diff --git a/pypy/module/_collections/interp_deque.py b/pypy/module/_collections/interp_deque.py
--- a/pypy/module/_collections/interp_deque.py
+++ b/pypy/module/_collections/interp_deque.py
@@ -378,7 +378,7 @@
                 return space.wrap(i)
 
         x = space.repr(w_x)
-        raise oefmt(self.space.w_ValueError, "%s is not in deque" % x)
+        raise oefmt(self.space.w_ValueError, "%s is not in deque", x)
 
     def reviter(self):
         "Return a reverse iterator over the deque."


More information about the pypy-commit mailing list