summaryrefslogtreecommitdiff
path: root/numpy/core/shape_base.py
diff options
context:
space:
mode:
authorJamie Townsend <jamiehntownsend@gmail.com>2017-11-01 13:25:42 +0000
committerJamie Townsend <jamiehntownsend@gmail.com>2017-11-03 11:14:44 +0000
commita5cbc93168e08f7a083a7df174a44314c1af9bd4 (patch)
tree866ec61810baa995807ec673694c48a6379ec898 /numpy/core/shape_base.py
parenteaddf3935ab94def7439f8674e1444af2f12cfbb (diff)
downloadnumpy-a5cbc93168e08f7a083a7df174a44314c1af9bd4.tar.gz
Use builtin next method
Diffstat (limited to 'numpy/core/shape_base.py')
-rw-r--r--numpy/core/shape_base.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/shape_base.py b/numpy/core/shape_base.py
index 29765d078..ca0faca97 100644
--- a/numpy/core/shape_base.py
+++ b/numpy/core/shape_base.py
@@ -405,7 +405,7 @@ def _block_check_depths_match(arrays, parent_index=[]):
idxs_ndims = (_block_check_depths_match(arr, parent_index + [i])
for i, arr in enumerate(arrays))
- first_index, max_arr_ndim = idxs_ndims.__next__()
+ first_index, max_arr_ndim = next(idxs_ndims)
for i, (index, ndim) in enumerate(idxs_ndims, 1):
if ndim > max_arr_ndim:
max_arr_ndim = ndim