Skip to content

Commit

Permalink
PY3: Use next function on iterator while checking ECAT affines
Browse files Browse the repository at this point in the history
Fix suggested by Andrew Crabb (@idoimaging) in
nipy#776 (comment)
  • Loading branch information
effigies committed Jul 30, 2019
1 parent 244bc37 commit 8b00fd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nibabel/ecat.py
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@ def _check_affines(self):
affs = [self.get_frame_affine(i) for i in range(nframes)]
if affs:
i = iter(affs)
first = i.next()
first = next(i)
for item in i:
if not np.allclose(first, item):
return False
Expand Down

0 comments on commit 8b00fd0

Please sign in to comment.