Fix flatisfy.tools.batch with Python3

This commit is contained in:
Lucas Verney 2017-09-26 01:04:09 +02:00
parent 15eb5a19f6
commit 9b087729d3

View File

@ -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):