Fix flatisfy.tools.batch with Python3
This commit is contained in:
parent
15eb5a19f6
commit
9b087729d3
@ -105,7 +105,7 @@ def batch(iterable, size):
|
||||
sourceiter = iter(iterable)
|
||||
while True:
|
||||
batchiter = itertools.islice(sourceiter, size)
|
||||
yield itertools.chain([batchiter.next()], batchiter)
|
||||
yield itertools.chain([next(batchiter)], batchiter)
|
||||
|
||||
|
||||
def is_within_interval(value, min_value=None, max_value=None):
|
||||
|
Loading…
Reference in New Issue
Block a user