diff --git a/src/__init__.py b/src/__init__.py index 312a43ad8886ba2dad7c1373ca9848eae69bb646..e4799d9620da505320f15c4b6712e5456d132959 100644 --- a/src/__init__.py +++ b/src/__init__.py @@ -725,7 +725,8 @@ def indices_in_shape(shape): else: remainder = shape[1:] for i in xrange(0, shape[0]): - yield (i,)+indices_in_shape(remainder) + for rest in indices_in_shape(remainder): + yield (i,)+rest