[pypy-commit] pypy numpypy-nditer: Fix translation

rguillebert noreply at buildbot.pypy.org
Thu Jun 13 20:36:23 CEST 2013


Author: Romain Guillebert <romain.py at gmail.com>
Branch: numpypy-nditer
Changeset: r64876:0a0ae7e99b40
Date: 2013-06-13 20:35 +0200
http://bitbucket.org/pypy/pypy/changeset/0a0ae7e99b40/

Log:	Fix translation

diff --git a/pypy/module/micronumpy/interp_nditer.py b/pypy/module/micronumpy/interp_nditer.py
--- a/pypy/module/micronumpy/interp_nditer.py
+++ b/pypy/module/micronumpy/interp_nditer.py
@@ -369,7 +369,7 @@
 
     def descr_get_index(self, space):
         if self.tracked_index == "":
-            raise OperationError(space.w_ValueError, "Iterator does not have an index")
+            raise OperationError(space.w_ValueError, space.wrap("Iterator does not have an index"))
         return space.wrap(self.index_iter.getvalue())
 
     def descr_get_has_multi_index(self, space):


More information about the pypy-commit mailing list