From a691f2deb055f4ebfd60f742d816980c6893871f Mon Sep 17 00:00:00 2001 From: Jamie Townsend Date: Thu, 9 Nov 2017 12:56:10 +0000 Subject: Rm unnecessary enumerate --- numpy/core/shape_base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'numpy/core/shape_base.py') diff --git a/numpy/core/shape_base.py b/numpy/core/shape_base.py index ca0faca97..8a047fdda 100644 --- a/numpy/core/shape_base.py +++ b/numpy/core/shape_base.py @@ -406,7 +406,7 @@ def _block_check_depths_match(arrays, parent_index=[]): for i, arr in enumerate(arrays)) first_index, max_arr_ndim = next(idxs_ndims) - for i, (index, ndim) in enumerate(idxs_ndims, 1): + for index, ndim in idxs_ndims: if ndim > max_arr_ndim: max_arr_ndim = ndim if len(index) != len(first_index): -- cgit v1.2.1