[pypy-commit] pypy stmgc-c8: translation fix

arigo noreply at buildbot.pypy.org
Thu Jun 18 15:29:15 CEST 2015


Author: Armin Rigo <arigo at tunes.org>
Branch: stmgc-c8
Changeset: r78180:bd18b5f3edec
Date: 2015-06-18 14:30 +0100
http://bitbucket.org/pypy/pypy/changeset/bd18b5f3edec/

Log:	translation fix

diff --git a/pypy/module/pypystm/queue.py b/pypy/module/pypystm/queue.py
--- a/pypy/module/pypystm/queue.py
+++ b/pypy/module/pypystm/queue.py
@@ -75,8 +75,9 @@
         """
         res = self.q.join()
         if res != 0:
-            raise oefmt('task_done() called too many times (%d more than '
-                        'there were items placed in the queue)', -res)
+            raise oefmt(space.w_ValueError,
+                'task_done() called too many times '
+                '(%d more than there were items placed in the queue)', -res)
 
 
 def W_Queue___new__(space, w_subtype):


More information about the pypy-commit mailing list