Author: Brian Kearns <[email protected]>
Branch:
Changeset: r68459:685403c62cab
Date: 2013-12-18 00:10 -0500
http://bitbucket.org/pypy/pypy/changeset/685403c62cab/
Log: fix translation
diff --git a/pypy/module/micronumpy/interp_numarray.py
b/pypy/module/micronumpy/interp_numarray.py
--- a/pypy/module/micronumpy/interp_numarray.py
+++ b/pypy/module/micronumpy/interp_numarray.py
@@ -1044,6 +1044,7 @@
raise OperationError(space.w_TypeError, space.wrap(
"only integer arrays with one element "
"can be converted to an index"))
+ assert isinstance(value, interp_boxes.W_GenericBox)
return value.item(space)
def descr_reduce(self, space):
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit