Author: Brian Kearns <[email protected]>
Branch: 
Changeset: r62321:6a6f67992369
Date: 2013-03-12 14:25 -0400
http://bitbucket.org/pypy/pypy/changeset/6a6f67992369/

Log:    setitem shouldn't return anything, separate for clarity

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
@@ -158,8 +158,8 @@
             view = chunks.apply(self)
             view.implementation.setslice(space, w_value)
             return
-        return loop.setitem_array_int(space, self, iter_shape, indexes, 
val_arr,
-                                      prefix)
+        loop.setitem_array_int(space, self, iter_shape, indexes, val_arr,
+                               prefix)
 
     def descr_getitem(self, space, w_idx):
         if (isinstance(w_idx, W_NDimArray) and
@@ -180,9 +180,9 @@
 
     def descr_setitem(self, space, w_idx, w_value):
         if (isinstance(w_idx, W_NDimArray) and
-            w_idx.get_dtype().is_bool_type()):
-            return self.setitem_filter(space, w_idx,
-                                       convert_to_array(space, w_value))
+                w_idx.get_dtype().is_bool_type()):
+            self.setitem_filter(space, w_idx, convert_to_array(space, w_value))
+            return
         try:
             self.implementation.descr_setitem(space, self, w_idx, w_value)
         except ArrayArgumentException:
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to