mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-16 11:21:25 +08:00
Fix iterator.
This commit is contained in:
@@ -126,8 +126,8 @@ def find_contours(array, level,
|
||||
def _take_2(seq):
|
||||
iterator = iter(seq)
|
||||
while(True):
|
||||
n1 = iterator.next()
|
||||
n2 = iterator.next()
|
||||
n1 = next(iterator)
|
||||
n2 = next(iterator)
|
||||
yield (n1, n2)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user