Skip to content

Commit a125f4d

Browse files
committed
PY3: Use next function on iterator while checking ECAT affines
1 parent 244bc37 commit a125f4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nibabel/ecat.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@ def _check_affines(self):
559559
affs = [self.get_frame_affine(i) for i in range(nframes)]
560560
if affs:
561561
i = iter(affs)
562-
first = i.next()
562+
first = next(i)
563563
for item in i:
564564
if not np.allclose(first, item):
565565
return False

0 commit comments

Comments
 (0)