summaryrefslogtreecommitdiff
path: root/numpy/core/shape_base.py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/core/shape_base.py')
-rw-r--r--numpy/core/shape_base.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/core/shape_base.py b/numpy/core/shape_base.py
index 217631cd3..23e2ef57f 100644
--- a/numpy/core/shape_base.py
+++ b/numpy/core/shape_base.py
@@ -402,8 +402,8 @@ def _block_check_depths_match(arrays, parent_index=[]):
)
)
elif type(arrays) is list and len(arrays) > 0:
- indexes, arr_ndims = zip(*(_block_check_depths_match(arr, parent_index + [i])
- for i, arr in enumerate(arrays)))
+ indexes, arr_ndims = zip(*[_block_check_depths_match(arr, parent_index + [i])
+ for i, arr in enumerate(arrays)])
first_index = indexes[0]
for i, index in enumerate(indexes):